Hi,<div><br></div><div>I'm trying to using gwt-openlayers to display WFS layers. It works fine using WFS 1.1.0 using the following code:</div><div><br></div><div><br></div><div><div>VectorOptions vectorOptions = new VectorOptions();</div>
<div>final Vector mapLayer = new Vector("roads", vectorOptions);</div><div><br></div><div>WFSProtocolOptions wfsProtocolOptions = new WFSProtocolOptions(</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"<a href="http://li199-25.members.linode.com:8080/geoserver/ows">http://li199-25.members.linode.com:8080/geoserver/ows</a>",</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>"<a href="http://www.openplans.org/spearfish">http://www.openplans.org/spearfish</a>",</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"roads");</div>
<div>wfsProtocolOptions.setSrsName("EPSG:4326");</div><div>wfsProtocolOptions.setVersion("1.1.0");</div><div><br></div><div>WFSProtocol wfsProtocol = new WFSProtocol(wfsProtocolOptions);</div><div>Callback callback = new Callback() {</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>public void computeResponse(Response response) {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>try {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>VectorFeature[] features = response.getFeatures();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>mapLayer.addFeatures(features);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>} catch (Exception ex) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ex.printStackTrace();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>};</div><div>WFSProtocolCRUDOptions options = new WFSProtocolCRUDOptions(callback);</div>
<div>wfsProtocol.read(options);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div>getMap().addLayer(mapLayer);</div><div>getMap().zoomToExtent(new Bounds(-103.88, 44.305, -103.62, 44.566));</div>
</div><div><br></div><div><br></div><div>However, if I try and use WFS version 1.0.0 then nothing is displayed and there are no errors.</div><div><br></div><div>Is there an extra step I'm missing for WFS 1.0.0 data? I'm trying to access data from Geoserver if that makes a difference.</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Jon</div>