<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WFSLayer returns 0 features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wfslayer-returns-0-features/m-p/508878#M47311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;Having trouble adding a WFS layer with the javascript API.&amp;nbsp; Specifically the buildRequest seems to create a PropertyName value as ns2 with an empty string which can't be parsed by the server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;var opts = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fbn00054001%2FspatialSTORM%2FspatialSUITE%2Fv7_2_0%2Fwfs" rel="nofollow" target="_blank"&gt;http://bn00054001/spatialSTORM/spatialSUITE/v7_2_0/wfs&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; "nsLayerName": '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM%7CCADSymbol" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM|CADSymbol&lt;/A&gt;&lt;SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "mode": "ondemand",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "wkid": "4326",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "version": "2.0.0",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "showDetails": true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "infoTemplate": new InfoTemplate()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;};&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;Request Body below shows empty ns2 string.&amp;nbsp; PropertyName value also gets literal "ns2".&amp;nbsp; It also seems that typeNames should have the value of ns1 rather than the literal "ns1":&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;GetFeature &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:xsi='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:gml='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fgml" rel="nofollow" target="_blank"&gt;http://www.opengis.net/gml&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:wfs='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs%2F2.0" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs/2.0&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:ns1='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &lt;SPAN style="color: #e23d39;"&gt;xmlns:ns2=''&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: 'courier new', courier;"&gt; version='2.0.0' service='WFS' count='100'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &amp;lt;Query &lt;SPAN style="color: #e23d39;"&gt;typeNames='ns1:CADSymbol&lt;/SPAN&gt;' srsName='EPSG:4326'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;ogc:Filter xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:BBOX&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;lt;ogc:PropertyName&amp;gt;ns2:&amp;lt;/ogc:PropertyName&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;gml:Box srsName='EPSG:4326'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;gml:coordinates&amp;gt;-116.34078010156037,43.59423182567582 -116.06612189843577,43.632760003442755&amp;lt;/gml:coordinates&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/gml:Box&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:BBOX&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; &amp;lt;/ogc:Filter&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &amp;lt;/Query&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;/GetFeature&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the Response Body below,&amp;nbsp; Line 9, position 12 refers to the empty string for ns2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;Exception exceptionCode="OperationProcessingFailed" locator="System.Xml"&amp;gt;&amp;lt;ExceptionText&amp;gt;Invalid namespace declaration. Line 9, position 12. :&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proxy is working ok, and GetCapabilities returns a good response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried overriding the buildRequest using getFeatureRequest and getFeature URL below.&amp;nbsp; There is no exception, but no features are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;"getFeatureRequest": "&amp;lt;GetFeature xmlns:xsi='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;' xmlns:gml='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fgml" rel="nofollow" target="_blank"&gt;http://www.opengis.net/gml&lt;/A&gt;&lt;SPAN&gt;' xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;' xmlns:wfs='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs&lt;/A&gt;&lt;SPAN&gt;' xmlns='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs%2F2.0" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs/2.0&lt;/A&gt;&lt;SPAN&gt;' xmlns:sps='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM&lt;/A&gt;&lt;SPAN&gt;' version='2.0.0' service='WFS'&amp;gt; &amp;lt;Query typeNames='CADSymbol' srsName='EPSG:4326'&amp;gt;&amp;lt;ogc:BBOX&amp;gt;&amp;lt;ogc:PropertyName&amp;gt;&amp;lt;/ogc:PropertyName&amp;gt;&amp;lt;gml:Box srsName='EPSG:4326'&amp;gt;&amp;lt;gml:coordinates&amp;gt;-116.34078010156037,43.59423182567582 -116.06612189843577,43.632760003442755&amp;lt;/gml:coordinates&amp;gt;&amp;lt;/gml:Box&amp;gt;&amp;lt;/ogc:BBOX&amp;gt;&amp;lt;/Query&amp;gt;&amp;lt;/GetFeature&amp;gt;", &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;"getFeatureUrl": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fbn00054001%2FspatialSTORM%2FspatialSUITE%2Fv7_2_0%2Fwfs%3Fversion%3D2.0.0%26request%3DGetFeature%26typenames%3DCADSymbol" rel="nofollow" target="_blank"&gt;http://bn00054001/spatialSTORM/spatialSUITE/v7_2_0/wfs?version=2.0.0&amp;amp;request=GetFeature&amp;amp;typenames=CADSymbol&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The URL above does return xml in the browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 21:21:43 GMT</pubDate>
    <dc:creator>MichaelSchnack</dc:creator>
    <dc:date>2016-06-06T21:21:43Z</dc:date>
    <item>
      <title>WFSLayer returns 0 features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wfslayer-returns-0-features/m-p/508878#M47311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;Having trouble adding a WFS layer with the javascript API.&amp;nbsp; Specifically the buildRequest seems to create a PropertyName value as ns2 with an empty string which can't be parsed by the server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;var opts = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fbn00054001%2FspatialSTORM%2FspatialSUITE%2Fv7_2_0%2Fwfs" rel="nofollow" target="_blank"&gt;http://bn00054001/spatialSTORM/spatialSUITE/v7_2_0/wfs&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; "nsLayerName": '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM%7CCADSymbol" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM|CADSymbol&lt;/A&gt;&lt;SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "mode": "ondemand",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "wkid": "4326",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "version": "2.0.0",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "showDetails": true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; "infoTemplate": new InfoTemplate()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;};&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;Request Body below shows empty ns2 string.&amp;nbsp; PropertyName value also gets literal "ns2".&amp;nbsp; It also seems that typeNames should have the value of ns1 rather than the literal "ns1":&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;GetFeature &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:xsi='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:gml='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fgml" rel="nofollow" target="_blank"&gt;http://www.opengis.net/gml&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:wfs='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs%2F2.0" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs/2.0&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt; xmlns:ns1='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &lt;SPAN style="color: #e23d39;"&gt;xmlns:ns2=''&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: 'courier new', courier;"&gt; version='2.0.0' service='WFS' count='100'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &amp;lt;Query &lt;SPAN style="color: #e23d39;"&gt;typeNames='ns1:CADSymbol&lt;/SPAN&gt;' srsName='EPSG:4326'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;ogc:Filter xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ogc:BBOX&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&amp;lt;ogc:PropertyName&amp;gt;ns2:&amp;lt;/ogc:PropertyName&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;gml:Box srsName='EPSG:4326'&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;gml:coordinates&amp;gt;-116.34078010156037,43.59423182567582 -116.06612189843577,43.632760003442755&amp;lt;/gml:coordinates&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/gml:Box&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ogc:BBOX&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;nbsp; &amp;lt;/ogc:Filter&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt; &amp;lt;/Query&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #303030;"&gt;&amp;lt;/GetFeature&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the Response Body below,&amp;nbsp; Line 9, position 12 refers to the empty string for ns2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;Exception exceptionCode="OperationProcessingFailed" locator="System.Xml"&amp;gt;&amp;lt;ExceptionText&amp;gt;Invalid namespace declaration. Line 9, position 12. :&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proxy is working ok, and GetCapabilities returns a good response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried overriding the buildRequest using getFeatureRequest and getFeature URL below.&amp;nbsp; There is no exception, but no features are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;"getFeatureRequest": "&amp;lt;GetFeature xmlns:xsi='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;' xmlns:gml='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fgml" rel="nofollow" target="_blank"&gt;http://www.opengis.net/gml&lt;/A&gt;&lt;SPAN&gt;' xmlns:ogc='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fogc" rel="nofollow" target="_blank"&gt;http://www.opengis.net/ogc&lt;/A&gt;&lt;SPAN&gt;' xmlns:wfs='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs&lt;/A&gt;&lt;SPAN&gt;' xmlns='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.opengis.net%2Fwfs%2F2.0" rel="nofollow" target="_blank"&gt;http://www.opengis.net/wfs/2.0&lt;/A&gt;&lt;SPAN&gt;' xmlns:sps='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.synchronoss.com%2FspatialSTORM" rel="nofollow" target="_blank"&gt;http://www.synchronoss.com/spatialSTORM&lt;/A&gt;&lt;SPAN&gt;' version='2.0.0' service='WFS'&amp;gt; &amp;lt;Query typeNames='CADSymbol' srsName='EPSG:4326'&amp;gt;&amp;lt;ogc:BBOX&amp;gt;&amp;lt;ogc:PropertyName&amp;gt;&amp;lt;/ogc:PropertyName&amp;gt;&amp;lt;gml:Box srsName='EPSG:4326'&amp;gt;&amp;lt;gml:coordinates&amp;gt;-116.34078010156037,43.59423182567582 -116.06612189843577,43.632760003442755&amp;lt;/gml:coordinates&amp;gt;&amp;lt;/gml:Box&amp;gt;&amp;lt;/ogc:BBOX&amp;gt;&amp;lt;/Query&amp;gt;&amp;lt;/GetFeature&amp;gt;", &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;"getFeatureUrl": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fbn00054001%2FspatialSTORM%2FspatialSUITE%2Fv7_2_0%2Fwfs%3Fversion%3D2.0.0%26request%3DGetFeature%26typenames%3DCADSymbol" rel="nofollow" target="_blank"&gt;http://bn00054001/spatialSTORM/spatialSUITE/v7_2_0/wfs?version=2.0.0&amp;amp;request=GetFeature&amp;amp;typenames=CADSymbol&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The URL above does return xml in the browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 21:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wfslayer-returns-0-features/m-p/508878#M47311</guid>
      <dc:creator>MichaelSchnack</dc:creator>
      <dc:date>2016-06-06T21:21:43Z</dc:date>
    </item>
  </channel>
</rss>

