Hi To solve the non calling issue, I've deployed the WFS and the Web application to the same server. Since they were in the same machine but in different ports it's necessary to setup the Openalyers.proxyHost, or make them work in the same Application Pool. I've done the latter and seen the (POST) request work, but not how I expected. My current request is:
var layer = new OpenLayers.Layer.Vector("MonkeyIsland", { strategies: [new OpenLayers.Strategy.BBOX()], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS({ version: "1.0.0", srsName: "EPSG:4326", url: "http://localhost/WFS/GetFeature.ashx", featureNS: "http://www.mapinfo.com/wfs", featureType: "MonkeyIsland", geometryName: "VL_GMTR", schema: "http://localhost/WFS/GetFeature.ashx?service=WFS&version=1.0.0&request=DescribeFeatureType&typename=miwfs:MonkeyIsland" }) } There are 2 things concerning this call: 1. I can only see the request being made (via Firebug) after I change the zoom level 2. The WFS response is: <ServiceException code="-1">Missing namespace prefix for PropertyName VL_GMTR</ServiceException> So I believe that I'm missing one or more options in my request but, maybe a namespace, but I don't know how to set it... Can someone help? Answering Robert's question, I believe the featureNS is the namespace of the feature described in the WFS GetCapabilities. In my case I have the miwfs:MonkeyIsland feature, so the namespace prefix is miwfs and the corresponding namespace is identified in the root node of the GetCapabilities of the WFS (xmlns:miwfs="http://www.mapinfo.com/wfs"). Edu -----Original Message----- From: Robert Zimmermann [mailto:zimmerm...@zimrob.de] Sent: sábado, 17 de Julho de 2010 10:18 To: Eduardo José Ramos; users@openlayers.org Subject: AW: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS Hi ... I have the same problem like Edu. But I have also a understanding problem. What is a featureNS? Why do I need it? My Layerdefinition is this: //VECTOR LAYER var wfs = new OpenLayers.Layer.Vector("WFS Vector Layer", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://domain.com:8080/geoserver/wfs", featureType: "pcd_exportdata" featureNS: "http://domain.com:8080/geoserver/wfs" }) }); map.addLayer(wfs); when I looking in the XML Response, then i can see all Point- data with all feature. Regards, Robert. -----Ursprüngliche Nachricht----- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Eduardo Ramos Gesendet: Freitag, 16. Juli 2010 18:23 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] Working with Openlayers.Layer.Vector and WFS I'm working with IIS 7 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector- and-WFS-tp5301971p5302694.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users