This has baffled me for hours, I've tried nearly every combination of request parameters without success.
I have a points shapefile published in arcgis and can download the feature GML via WFS for the entire layer using the following request (sorry the server is not available on the internet):
http://mymachine.com/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?SERVICE=WFS&VERSION=1.1.1&REQUEST=GetFeature&typeName=iwiswells
Which returns XML for each feature member in the layer like so:
<SPAN><wfs:FeatureCollection xsi:schemaLocation="</SPAN><A class="jive-link-external-small" href="http://server/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer" rel="nofollow noopener noreferrer" target="_blank">http://server/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer</A><SPAN> </SPAN><A class="jive-link-external-small" href="http://server/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?request=DescribeFeatureType%26version=1.1.0%26typename=iwiswells" rel="nofollow noopener noreferrer" target="_blank">http://server/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?request=DescribeFeatureType%26version=1.1.0%26typename=iwiswells</A><SPAN> </SPAN><A class="jive-link-external-small" href="http://www.opengis.net/wfs" rel="nofollow noopener noreferrer" target="_blank">http://www.opengis.net/wfs</A><SPAN> </SPAN><A class="jive-link-external-small" href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" rel="nofollow noopener noreferrer" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</A><SPAN>"></SPAN><BR /> <gml:boundedBy><BR /> <gml:Envelope srsName="urn:ogc:def:crs:EPSG:6.9:4326"><BR /> <gml:lowerCorner>28.522 -10.5</gml:lowerCorner><BR /> <gml:upperCorner>80.469 65.01144</gml:upperCorner><BR /> </gml:Envelope><BR /> </gml:boundedBy><BR /> <gml:featureMember><BR /> <DMS_DMS_WELLS:iwiswells><BR /> <DMS_DMS_WELLS:FID>0</DMS_DMS_WELLS:FID><BR /> <DMS_DMS_WELLS:Shape><BR /> <gml:Point><BR /> <gml:pos>64.994 7.5312</gml:pos><BR /> </gml:Point><BR /> </DMS_DMS_WELLS:Shape><BR /> <DMS_DMS_WELLS:gid>1</DMS_DMS_WELLS:gid><BR /> <DMS_DMS_WELLS:sitelocid>101</DMS_DMS_WELLS:sitelocid><BR /> <DMS_DMS_WELLS:site_ref>101/1</DMS_DMS_WELLS:site_ref><BR /> <DMS_DMS_WELLS:latitude>24.9943</DMS_DMS_WELLS:latitude><BR /> <DMS_DMS_WELLS:longitude>47.5002</DMS_DMS_WELLS:longitude><BR /> </DMS_DMS_WELLS:iwiswells><BR /> </gml:featureMember><BR /> <gml:featureMember><BR /> ...<BR /> </gml:featureMember><BR /></wfs:FeatureCollection>
And this results in on feature member begin returned. What I'm looking for is an arcgis WFS equivalent!
I have read all the documentation, all the specs but my request either result in the entire feature list being returned or an error message, here's a few requests I have tried:
http://mymachine.com/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?SERVICE=WFS&VERSION=1.1.1&REQUEST=GetFeature&featureid=10
http://mymachine.com/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?SERVICE=WFS&VERSION=1.1.1&REQUEST=GetFeature&typeName=iwiswells&CQL_FILTER=FID='10'
I've even tried using a filter on a different attribute without success:
http://mymachine.com/arcgis/services/DMS/DMS_WELLS/MapServer/WFSServer?SERVICE=WFS&VERSION=1.1.1&REQUEST=GetFeature&typeName=iwiswells&filter=<Filter><PropertyIsEqualTo><PropertyName>site_ref</PropertyName><Literal>10</Literal></PropertyIsEqualTo></Filter>
Thanks for your help!