Hi,
I'm attempting to consume features from a hosted WFS service on ArcGIS Online. I'm using the same layer used in the WFS example for the JavaScript API (WFS Layer | ArcGIS API for JavaScript 3.30 ).
The ArcGIS JavaScript example works fine, but fails when I attempt to read the layer using Leaflet-WFST. Looking closer at the response to the GetFeature request, note the value for xmlns:JapanPrefectures2018 in line 5.
<SPAN class="prolog token"><?xml version="1.0" encoding="utf-8" ?></SPAN>
<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN><SPAN class="namespace token">wfs:</SPAN>FeatureCollection</SPAN> <SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>xs</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.w3.org/2001/XMLSchema<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>wfs</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.opengis.net/wfs<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>gml</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.opengis.net/gml<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>JapanPrefectures2018</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://dservices.arcgis.com/arcgis/services/V6ZHFr6zdgNZuVG0/JapanPrefectures2018/WFSServer<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>xlink</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.w3.org/1999/xlink<SPAN class="punctuation token">"</SPAN></SPAN> <SPAN class="attr-name token"><SPAN class="namespace token">xmlns:</SPAN>xsi</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.w3.org/2001/XMLSchema-instance<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token">timeStamp</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>2019-12-13T20:54:48Z<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token">numberOfFeatures</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>unknown<SPAN class="punctuation token">"</SPAN></SPAN>
<SPAN class="attr-name token"><SPAN class="namespace token">xsi:</SPAN>schemaLocation</SPAN><SPAN class="attr-value token"><SPAN class="punctuation token">=</SPAN><SPAN class="punctuation token">"</SPAN>http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
http://www.opengis.net/gml
http://schemas.opengis.net/gml/3.1.1/base/gml.xsd
http://dservices.arcgis.com/arcgis/services/V6ZHFr6zdgNZuVG0/JapanPrefectures2018/WFSServer
https://dservices.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/services/V6ZHFr6zdgNZuVG0/JapanPrefectures2018/MapServer/WFSServer?service<SPAN class="punctuation token">=</SPAN>wfs%26version<SPAN class="punctuation token">=</SPAN>1.1.0%26request<SPAN class="punctuation token">=</SPAN>DescribeFeatureType<SPAN class="punctuation token">"</SPAN></SPAN><SPAN class="punctuation token">></SPAN></SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
The value reads http://dservices.arcgis.com/arcgis/services/V6ZHFr6zdgNZuVG0/JapanPrefectures2018/WFSServer, which is not correct. The value needs to be http://dservices.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/services/JapanPrefectures2018/WFSServer.
I attempted publishing a WFS Layer using a hosted feature layer and it produces the same error. I also tried publishing a WFS service from ArcGIS Pro, which works perfectly, I'm guessing because the Namespace is set as an option when publishing via Pro.
Any ideas? Is this a bug? Something I've missed? Something else?