title: Adding WFS layer with OpenLayers
body: <p>I'm trying to add one of the included datasets with geoserver to an openlayers map. I've followed the opengeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a glance at my code and geoserver setup and tell me where i'm going wrong?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>            //WMS map
              world = new OpenLayers.Layer.WMS("Global Imagery", "http://maps.opengeo.org/geowebcache/service/wms", {
                  layers : "openstreetmap",
                  format : "image/png"
              });
              map.addLayer(world);
  
              //WFS
              parks = new OpenLayers.Layer.Vector("WFS", {
                  strategies : [new OpenLayers.Strategy.BBOX()],
                  protocol : new OpenLayers.Protocol.WFS({
                      url : "http://localhost:8081/geoserver/wfs",
                      featureType : "medford:parks",
                      featureNS : "http://medford.opengeo.org/medford"
                  })
              });
  
              map.addLayer(parks);
  
              map.zoomToMaxExtent();
  </code></pre>
  
  <p>GeoServer details:
  workspace name = medford, Namespace URI = <a href="http://medford.opengeo.org" rel="nofollow">http://medford.opengeo.org</a>
  For the feature type I have tried "parks" and "medford:parks"</p>
  
  <p>The layer is enabled, advertised and has a 30 feature return limit.</p>
  
  <p>I'm struggling to put a simple map together</p>
  
  <p>Thanks,
  James</p>