[OpenLayers-Users] Unable to get WFS working
Smaran Harihar
smaran.harihar at gmail.com
Wed Aug 29 14:13:59 PDT 2012
Hi,
This is really weird. I have cgi-bin working. I know this since I have a
function which make AJAX call and I am receiving JSON in return. Now I am
trying to get WFS working but that does not seem to work. It is giving me
the following error in firebug,
"NetworkError: 502 Bad Gateway -
http://128.196.142.12/cgi-bin/proxy.cgi?url=http%3A%2F%2F128.196.142.12%3A8080%2Fgeoserver%2Fwfs
"
This is how I am adding WFS,
var states = new OpenLayers.Layer.Vector("USA States", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://128.196.142.12:8080/geoserver/wfs",
featureType: "usa:states",
featureNS: "http://usa.opengeo.org"
})
});
Is there something wrong with the code?
--
Thanks & Regards
Smaran Harihar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120829/f543e350/attachment.html>
More information about the Users
mailing list