laptop and a wrench

Bogue

Filtering a WFS service query string using the sign "+" results to the following error, "Xml Parsing failed. Reason: A name contained an invalid character".

Dernière publication: June 11, 2015 ArcGIS for Server
Numéro d’ID de bogue BUG-000087689
EnvoiMay 15, 2015
Dernière modificationApril 23, 2021
S’applique àArcGIS for Server
Version trouvée10.3
Système d’exploitationWindows
Version du système d’exploitation2008 R2 64 Bit
StatutIn Review

Solution de contournement

- Use "%20" or a space " " instead of the "+" sign. From the same example, both queries with space and %20 work and result the same cities: - Example that contains space " ": http://localhost/arcgis/services/SampleWorldCities/MapServer/WFSServer?SRSNAME=urn:ogc:def:crs:EPSG:6.9:4283&TYPENAME=esri:cities&VERSION=1.1.0&OUTPUTFORMAT=text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0&service=WFS&REQUEST=GetFeature&FILTER=<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:BBOX><ogc:PropertyName>Shape</ogc:PropertyName><gml:Envelope><gml:lowerCorner>-40 100</gml:lowerCorner><gml:upperCorner>-20 120</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter> - Example that contains space "%20": http://localhost/arcgis/services/SampleWorldCities/MapServer/WFSServer?SRSNAME=urn:ogc:def:crs:EPSG:6.9:4283&TYPENAME=esri:cities&VERSION=1.1.0&OUTPUTFORMAT=text/xml; subType=gml/3.1.1/profiles/gmlsf/1.0.0/0&service=WFS&REQUEST=GetFeature&FILTER=<ogc:Filter%20xmlns:ogc="http://www.opengis.net/ogc"%20xmlns:gml="http://www.opengis.net/gml"><ogc:BBOX><ogc:PropertyName>Shape</ogc:PropertyName><gml:Envelope><gml:lowerCorner>-40%20100</gml:lowerCorner><gml:upperCorner>-20%20120</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter>

Étapes pour reproduire

ID de bogue: BUG-000087689

Logiciel:

  • ArcGIS for Server

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement