<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi Bart,<br><br>thanks a lot! That solved my problem!<br>I had a uri for featureNS at the beginning and it did not work-so something else was even not correct then.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>Cheers<br>Sarah<br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;"></span></b><br></font><br>Hi,<br><br>featureNS is a URI, not the prefix like you have defined.<br><br>Check examples/wfs-protocol.html.<br><br>Best regards,<br>Bart<br><br>&gt; Hi list,<br>&gt;<br>&gt; I want to load a wfs layer in my map.<br>&gt; var wfs = new OpenLayers.Layer.Vector("wfs",<br>&gt;&nbsp; &nbsp;  {styleMap: styleMap,<br>&gt;&nbsp; &nbsp;  strategies: [new
 OpenLayers.Strategy.Fixed()],<br>&gt;&nbsp; &nbsp;  protocol: new OpenLayers.Protocol.WFS({<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  url: "<a href="http://myserver:81/geoserver/wfs" target="_blank">http://myserver:81/geoserver/wfs</a>?",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  featureNS: "gn",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  featureType: "mylayer",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  geometryName: "SHAPE",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  version: "1.1.0",<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  srsName: "EPSG:4326"<br>&gt;&nbsp; &nbsp;  }),<br>&gt;&nbsp; &nbsp;  projection: new OpenLayers.Projection("EPSG:4326") //like my map<br>&gt;&nbsp; &nbsp;  });<br>&gt;<br>&gt; But I can see a response at firebug but response.features is empty:<br>&gt; wfs.protocol.read({<br>&gt;&nbsp; &nbsp;  callback: function(response){<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; 
 if(response.success(){<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var features = response.features; //is empty<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  } else {<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  alert("failure!)<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp;  }<br>&gt;&nbsp; &nbsp;  }<br>&gt; });<br>&gt; My code is at geoservers www folder (geoserver is at Tomcat 6 on win).<br>&gt; FeatureInfo works fine.<br>&gt; Is this a matter of proxyhost?<br>&gt;<br>&gt; Thanks.<br>&gt; best regards<br>&gt; Sarah<br>&gt;<br>&gt;<br>&gt; __________________________________________________<br>&gt; Do You Yahoo!?<br>&gt; Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz<br>&gt; gegen Massenmails.<br>&gt; <a href="http://mail.yahoo.com" target="_blank">http://mail.yahoo.com</a> _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@openlayers.org"
 href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br><br><br></div></div>
</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>