Hello all.
I'm trying to setup a Geoserver 1.4RC4 server for testing but when I try posting a GetCapabilities request to the WFS, I get this response :
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://test:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
Could not locate service mapping to: (wfs,) </ServiceException>
</ServiceExceptionReport>
My GetCapabilities request is :
<?xml version="1.0" ?><wfs:GetCapabilities version="1.1.0" xmlns:wfs="http://www.opengis.net/wfs" />
This only occurs when using http post and worked with Geoserver 1.3.
Does anybody have an idea ?
Thanks.
--
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20
Sébastien Grignard ha scritto:
Hello all.
I'm trying to setup a Geoserver 1.4RC4 server for testing but when I try posting a GetCapabilities request to the WFS, I get this response :
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://test:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
Could not locate service mapping to: (wfs,) </ServiceException>
</ServiceExceptionReport>
My GetCapabilities request is :
<?xml version="1.0" ?><wfs:GetCapabilities version="1.1.0" xmlns:wfs="http://www.opengis.net/wfs" />
I've tried out your request and I do get a different exception:
<ServiceExceptionReport version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
−
<ServiceException>
Multiple requests found capable of handling: (null,GetCapabilities)
</ServiceException>
</ServiceExceptionReport>
which makes more sense, because there are two getCapabilities around,
one for wfs, one for wms.
This only occurs when using http post and worked with Geoserver 1.3.
In 1.3 we had one servlet per service, now there's a single dispatch
servlet that has to decide what service object to forward your
request to.
You missed the service="WFS" parameter, the following works:
<?xml version="1.0" ?><GetCapabilities version="1.1.0" service="WFS"
xmlns:wfs="http://www.opengis.net/wfs" />
Yet, in fact the dispatcher could look at the url and see that you're
posting to http://localhost:8080/geoserver/wfs ...
Cheers
Andrea Aime
Sébastien Grignard ha scritto:
Hello all.
I'm trying to setup a Geoserver 1.4RC4 server for testing but when I try posting a GetCapabilities request to the WFS, I get this response :
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://test:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
Could not locate service mapping to: (wfs,) </ServiceException>
</ServiceExceptionReport>
My GetCapabilities request is :
<?xml version="1.0" ?><wfs:GetCapabilities version="1.1.0" xmlns:wfs="http://www.opengis.net/wfs" />
Sebastien, how did you post this request? Using a form, or setting a
mime type as form urlencoded? If so, Geoserver assumes you're using
the POST version of a GET request, and not the standard XML request.
Cheers
Andrea
Thanks for your answer.
I'm posting with the curl library which set a 'application/x-www-form-urlencoded' content-type.
I tried directly with a form (Geoserver demonstration page) and it works. Yet with my curl client even when specifying the service I get the same response.
From what you say I should use a get form when posting with curl to make it work, but it's a bit inconvenient for more complex requests (like GetFeature with filters).
Would it work if I tried to set the content-type to '|multipart/form-data' ?
Thanks,
Sebastien.
|
Andrea Aime a écrit :
Sébastien Grignard ha scritto:
Hello all.
I'm trying to setup a Geoserver 1.4RC4 server for testing but when I try posting a GetCapabilities request to the WFS, I get this response :
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc http://test:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
Could not locate service mapping to: (wfs,) </ServiceException>
</ServiceExceptionReport>
My GetCapabilities request is :
<?xml version="1.0" ?><wfs:GetCapabilities version="1.1.0" xmlns:wfs="http://www.opengis.net/wfs" />
I've tried out your request and I do get a different exception:
<ServiceExceptionReport version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
−
<ServiceException>
Multiple requests found capable of handling: (null,GetCapabilities)
</ServiceException>
</ServiceExceptionReport>
which makes more sense, because there are two getCapabilities around,
one for wfs, one for wms.
This only occurs when using http post and worked with Geoserver 1.3.
In 1.3 we had one servlet per service, now there's a single dispatch
servlet that has to decide what service object to forward your
request to.
You missed the service="WFS" parameter, the following works:
<?xml version="1.0" ?><GetCapabilities version="1.1.0" service="WFS"
xmlns:wfs="http://www.opengis.net/wfs" />
Yet, in fact the dispatcher could look at the url and see that you're
posting to http://localhost:8080/geoserver/wfs ...
Cheers
Andrea Aime
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Sebastien Grignard
R&D Developer
Archivideo
40, rue des Veyettes - 35000 Rennes FRANCE
Phone: +033 2 99 86 30 20
Sébastien Grignard ha scritto:
Thanks for your answer.
I'm posting with the curl library which set a 'application/x-www-form-urlencoded' content-type.
I tried directly with a form (Geoserver demonstration page) and it works.
Ah, don't consider that one. The form is posted to a servlet which in
turn does another post to the actual service, you're not posting
directly to the service there.
Yet with my curl client even when specifying the service I get the same response.
From what you say I should use a get form when posting with curl to make it work, but it's a bit inconvenient for more complex requests (like GetFeature with filters).
Would it work if I tried to set the content-type to '|multipart/form-data' ?
Yes, whatever but not 'application/x-www-form-urlencoded'.
Cheers
Andrea
OK, setting Content-Type to text/xml made it work when directly querying Geoserver.
However when querying with an Apache reverse proxy in front of Geoserver I'm getting the same error.
I'll search the apache proxy module since it must change something in my request...
Sebastien.
Andrea Aime a écrit :
Sébastien Grignard ha scritto:
Thanks for your answer.
I'm posting with the curl library which set a 'application/x-www-form-urlencoded' content-type.
I tried directly with a form (Geoserver demonstration page) and it works.
Ah, don't consider that one. The form is posted to a servlet which in
turn does another post to the actual service, you're not posting
directly to the service there.
Yet with my curl client even when specifying the service I get the same response.
From what you say I should use a get form when posting with curl to make it work, but it's a bit inconvenient for more complex requests (like GetFeature with filters).
Would it work if I tried to set the content-type to '|multipart/form-data' ?
Yes, whatever but not 'application/x-www-form-urlencoded'.
Cheers
Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Sébastien Grignard
Ingénieur R&D
Archividéo
40, rue des Veyettes - 35000 Rennes
Tél: 02 99 86 30 20 - Fax: 02 99 86 30 21