<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Hi dev list,</div><div><br></div><div>Using OpenLayers & Geoserver for WMS seems straight forward and works OK, but I cannot get it to work for WFS. I can't seem to create a valid OpenLayers layer object.</div>
<div><br></div><div>A simple HTML page like this, gives a layer ('wfslayer'), that has no features (no data). </div><div><br></div><div>Any hints? - Is it a security issue?</div><div><br></div><div>regs.</div><div>
<br></div><div><div><font face="'courier new', monospace"><html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank" style="color: rgb(42, 93, 176); ">http://www.w3.org/1999/xhtml</a>"></font></div>
<div><font face="'courier new', monospace"> <head></font></div><div><font face="'courier new', monospace"> <title>WFS test!</title></font></div><div><font face="'courier new', monospace"> <script src="./OpenLayers.js" type="text/javascript"></script></font></div>
<div><font face="'courier new', monospace"><script> </font></div><div><font face="'courier new', monospace"> var wfslayer;</font></div><div><font face="'courier new', monospace"> OpenLayers.ProxyHost = "proxy.cgi?url=";</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"> function init() {</font></div><div><font face="'courier new', monospace"> </font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"> wfslayer = new OpenLayers.Layer.Vector("WFS", {</font></div><div><font face="'courier new', monospace"> strategies: [new OpenLayers.Strategy.BBOX()],</font></div>
<div><font face="'courier new', monospace"> protocol: new OpenLayers.Protocol.WFS({</font></div><div><font face="'courier new', monospace"> url: "<a href="http://ubuntu:8080/geoserver/wfs" target="_blank" style="color: rgb(42, 93, 176); ">http://ubuntu:8080/geoserver/wfs</a>",</font></div>
<div><font face="'courier new', monospace"> featureType: "tiger:poi",</font></div><div><font face="'courier new', monospace"> featureNS: "<a href="http://postgis.org/" target="_blank" style="color: rgb(42, 93, 176); ">http://postgis.org</a>",</font></div>
<div><font face="'courier new', monospace"> srsName: "EPSG:32632",</font></div><div><font face="'courier new', monospace"> version: "1.1.0" </font></div>
<div><font face="'courier new', monospace"> })</font></div><div><font face="'courier new', monospace">});</font></div><div><font face="'courier new', monospace"> </font></div><div><font face="'courier new', monospace"> </font></div>
<div><font face="'courier new', monospace"> }</font></div><div><font face="'courier new', monospace"> </font></div><div><font face="'courier new', monospace"> </script></font></div>
<div><font face="'courier new', monospace"></head></font></div><div><font face="'courier new', monospace"><body onload="init()"></font></div><div><font face="'courier new', monospace"></body></font></div>
</div><div><font face="'courier new', monospace"></html></font></div></span>