<div>All,</div>
<div> </div>
<div>I'm relatively new to OpenLayers and I have downloaded version 2.8 from the website (Revision 9492) and I am attempting to use it with GeoServer 2.0.1.</div>
<div> </div>
<div>I have successfully added an OpenLayers.Layer.WFS layer using the following: </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div>var wfsLayer = new OpenLayers.Layer.WFS( "WFS", "/MyApp/Proxy.ashx", </div>
<div>{ typeName: "mystore:boundary" }, </div>
<div>{projection: new OpenLayers.Projection("EPSG:27700"), maxExtent: new OpenLayers.Bounds(0, 0, 13000000, 13000000)}</div>
<div>);</div>
<div> </div></blockquote>
<div dir="ltr">However, I understand that OpenLayers.Layer.WFS is depreciated (from the documentation) and that I should use a vector layer, as such I have written the following to add as a vector layer: </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div dir="ltr">var wfsLayer = new OpenLayers.Layer.Vector( "WFS", {</div>
<div dir="ltr"> strategies: [new OpenLayers.Strategy.BBOX()],</div>
<div dir="ltr"> projection: new OpenLayers.Projection("EPSG:27700"), </div>
<div dir="ltr"> maxExtent: new OpenLayers.Bounds(0, 0, 13000000, 13000000),</div>
<div dir="ltr"> protocol: new OpenLayers.Protocol.WFS(</div>
<div dir="ltr"> {</div>
<div dir="ltr"> url: "/MyApp/Proxy.ashx", </div>
<div dir="ltr"> featureType: "mystore:boundary",</div>
<div dir="ltr"> version: "1.1.0"</div>
<div dir="ltr"> })</div>
<div dir="ltr">});</div></blockquote>
<div dir="ltr">My problem is that the first method works fine but the second method doesn't seem to do anything. I have tested using IE7 and Firefox and fiddler doesn't report any traffic or requests to the Proxy URL.</div>
<div dir="ltr"> </div>
<div dir="ltr">Any ideas?</div>
<div dir="ltr"> </div>
<div dir="ltr">Thanks</div>
<div dir="ltr"> </div>
<div dir="ltr">Andrew</div>