title: Load WFS layer from Geoserver to webmap using ArcGIS Javascript API
body: <p>I am trying to load a wfs layer stored in Geoserver to create a webmap using ArcGIS Javascript API. I have managed to do this ok with a WMS but I can't get it to work using WFSLayer. Does anyone know if this is even possible?</p>
  
  <p>My code so far:</p>
  
  <pre><code>var layer = new WFSLayer();
  var opts = { "url": "localhost:8080/geoserver/wfs";,
      "version": "1.0.0",
      "name": "RSAC:RSAC_Field_boundary_WGS84_2",
      "wkid": 4326,
      "maxFeatures": 100 }; 
  esriConfig.defaults.io.proxyUrl = "/sproxy/";;
  layer.fromJson(opts);
  map.addLayer(layer); });
  </code></pre>