<div>Bart,</div>
<div> </div>
<div>Thanks for that your first suggestion seems to have resolved the problem and I can now see the requests in Fiddler :)</div>
<div> </div>
<div>Is there a way to force the WFS layer to use HTTP Get rather than Post for requests?</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Andrew<br><br></div>
<div class="gmail_quote">On 10 March 2010 10:29, <span dir="ltr"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>don't use the namespace prefix in the featuretype.<br><br> {<br> url: "/MyApp/Proxy.ashx",<br>
featureType: "boundary",<br> featurePrefix: "mystore",<br> version: "1.1.0"<br> })<br><br>If this does not work, try specifying the featureNS (so the corresponding<br>URI) explicityl.<br>
<br>Best regards,<br>Bart<br>
<div>
<div></div>
<div class="h5"><br>> All,<br>><br>> I'm relatively new to OpenLayers and I have downloaded version 2.8 from<br>> the<br>> website (Revision 9492) and I am attempting to use it with GeoServer<br>> 2.0.1.<br>
><br>> I have successfully added an OpenLayers.Layer.WFS layer using the<br>> following:<br>><br>> var wfsLayer = new OpenLayers.Layer.WFS( "WFS", "/MyApp/Proxy.ashx",<br>> { typeName: "mystore:boundary" },<br>
> {projection: new OpenLayers.Projection("EPSG:27700"), maxExtent: new<br>> OpenLayers.Bounds(0, 0, 13000000, 13000000)}<br>> );<br>><br>><br>> However, I understand that OpenLayers.Layer.WFS is depreciated (from the<br>
> documentation) and that I should use a vector layer, as such I have<br>> written<br>> the following to add as a vector layer:<br>><br>> var wfsLayer = new OpenLayers.Layer.Vector( "WFS", {<br>> strategies: [new OpenLayers.Strategy.BBOX()],<br>
> projection: new OpenLayers.Projection("EPSG:27700"),<br>> maxExtent: new OpenLayers.Bounds(0, 0, 13000000, 13000000),<br>> protocol: new OpenLayers.Protocol.WFS(<br>> {<br>> url: "/MyApp/Proxy.ashx",<br>
> featureType: "mystore:boundary",<br>> version: "1.1.0"<br>> })<br>> });<br>><br>> My problem is that the first method works fine but the second method<br>> doesn't<br>
> seem to do anything. I have tested using IE7 and Firefox and fiddler<br>> doesn't<br>> report any traffic or requests to the Proxy URL.<br>><br>> Any ideas?<br>><br>> Thanks<br>><br>> Andrew<br>
</div></div>
<div>
<div></div>
<div class="h5">> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br><br><br></div></div></blockquote></div><br>