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
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to