Using a Java-based client, I'm trying to programmatically execute an HTTP
POST against the following URL
http://localhost:8080/geoserver/wfs
What's deployed there is "out-of-the-box" configuartion of Geoserver 1.4.0
running under JBoss 4.0.4 (which is itself running Tomcat 5.5.17).
The body of the HTTP POST contains the following XML:
<wfs:GetFeature service="WFS" version="1.0.0"
outputFormat="GML2"
xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
<wfs:Query typeName="states">
<ogc:Filter>
<ogc:BBOX>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates>
-73.99312376470733,40.76203427979042
-73.9239210030026,40.80129519821393
</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
I'm getting the following error:
=================================================================
org.vfny.geoserver.ServiceException - encountered error: Could not locate
service mapping to: (wfs,null)
at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)
Same thing works fine under Geoserver 1.3.x (under Tomcat but without
JBoss).
I saw references on the forum to a similar problem that seemed to be solved
by adding the following HTTP header request to the request:
Content-Type: text/xml
but that didn't work for me.
I read how a GetFeature works (both infor GET and POST formatted HTTP
requests) at
http://docs.codehaus.org/display/GEOS/How+a+GetFeature+request+works
and can't see what's wrong.
I thought it could be related to JBoss/Tomcat not being able to create the
temporary file to which Geoserver writes the XML for a POST formatted
request but I've seen references in this forum to that problem and it yields
a different kind of exception.
I'm out of ideas.
Any guidance would be greatly appreciated.
--
View this message in context: http://www.nabble.com/HTTP-POST-to-Geoserver-fails---Could-not-locate-service-mapping-to%3A-(wfs%2Cnull)-tf3203624.html#a8896059
Sent from the GeoServer - User mailing list archive at Nabble.com.