[OpenLayers-Users] WFS Get Feature using POST?

Imran Rajjad rajjad at gmail.com
Mon Nov 5 21:49:23 PST 2012


Dear List,

Is there any possible way of making a raw Post request using
Openlayers.Request to a Wfs service?

-----------
 var request= OpenLayers.Request.POST({
url: "gis_server/wfs",
data:'<wfs:GetFeature service="WFS" version="1.0.0"
xmlns:wfs="gis_server/wfs" xmlns:topp=gis_server_Url+"/wfs"> <wfs:Query
typeName="topp:layer"/> </wfs:GetFeature>',
headers: {
"Content-Type": "text/javascript"
},
success: function(data){alert('success');}
});
request.send();
-------------

The response is required in JSON format, Have been trying a basic XML
document to get things running but it seems the requests never reach
Geoserver, The reason for coming to POST method is that the application has
been making spatial filters which make the url length out of browser`s
limit.

regards,
Imran
-- 
I.R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121106/ffe31442/attachment.html>


More information about the Users mailing list