Test Feature service Query method with SoapUI

4727
1
Jump to solution
02-06-2015 03:13 PM
DanMcCoy
Occasional Contributor III


I'm looking for help on creating a test SOAP call to the Query method of a Feature Service (ArcGIS 10.1) using SoapUI or a similar tool.  Can anyone provide some guidance on what to speocify in the etag & format tags of the  ServiceDataOptions?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.esri.com/schemas/ArcGIS/10.1">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:Query>
         <LayerOrTableID>19</LayerOrTableID>
         <QueryFilter>
            <WhereClause>APN='00600410130000'</WhereClause>
         </QueryFilter>
         <ServiceDataOptions>
            <Etag>"0"</Etag>
            <Format>"JSON"</Format>
         </ServiceDataOptions>
      </ns:Query>
   </soapenv:Body>
</soapenv:Envelope>

Thanks,

Dan

0 Kudos
1 Solution

Accepted Solutions
DanMcCoy
Occasional Contributor III

The 2 keys were leave out the reference to etag and don't include quotes on the format. In our case, the NATIVE format was preferred over JSON.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.esri.com/schemas/ArcGIS/10.1">  
   <soapenv:Header/>  
   <soapenv:Body>  
      <ns:Query>  
         <LayerOrTableID>19</LayerOrTableID>  
         <QueryFilter>  
            <WhereClause>APN='00600410130000'</WhereClause>  
         </QueryFilter>  
         <ServiceDataOptions>  
            <Format>NATIVE</Format>  
         </ServiceDataOptions>  
      </ns:Query>  
   </soapenv:Body>  
</soapenv:Envelope>

Thanks to https://community.esri.com/migrated-users/3354

Dan

View solution in original post

0 Kudos
1 Reply
DanMcCoy
Occasional Contributor III

The 2 keys were leave out the reference to etag and don't include quotes on the format. In our case, the NATIVE format was preferred over JSON.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.esri.com/schemas/ArcGIS/10.1">  
   <soapenv:Header/>  
   <soapenv:Body>  
      <ns:Query>  
         <LayerOrTableID>19</LayerOrTableID>  
         <QueryFilter>  
            <WhereClause>APN='00600410130000'</WhereClause>  
         </QueryFilter>  
         <ServiceDataOptions>  
            <Format>NATIVE</Format>  
         </ServiceDataOptions>  
      </ns:Query>  
   </soapenv:Body>  
</soapenv:Envelope>

Thanks to https://community.esri.com/migrated-users/3354

Dan

0 Kudos