AnsweredAssumed Answered

Adding a feature to Feature Service (polygon) using ESRI SOAP API

Question asked by gercoflonk on Aug 20, 2018

Hi,

 

Using the ESRI SOAP API, how does one add a polygon to an existing Feature Service? Documentation seems scarce on this point. Using SOAPUI and the wsdl (provided by ArcGIS Server) i was able to distill the following request:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.esri.com/schemas/ArcGIS/10.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:Add>
         <LayerOrTableID>0</LayerOrTableID>
         <DataObjects>
            <DataObjectArray>
               <!--Zero or more repetitions:-->
               <DataObject>
                  <!--Optional:-->
                  <Properties>
                     <PropertyArray>
                        <!--Zero or more repetitions:-->
                        <PropertySetProperty>
                           <Key>Key</Key>
                           <Value>Value</Value>
                        </PropertySetProperty>
                     </PropertyArray>
                  </Properties>
               </DataObject>
            </DataObjectArray>
      </ns:Add>
   </soapenv:Body>
</soapenv:Envelope>

 

In some other thread I found that adding the following on the same level as <PropertySetProperty> tag would give me a valid point:

<Geometry xsi:type="tns:PointN">  
    <X>187974</X> 
    <Y>334501</Y> 
</Geometry>

However, it is unclear to me what the syntax for adding a polygon should be as there is next to no documentation on this. Just to be clear: I'd like to use the SOAP API to automatically insert features (polygon: a simple square) genereated by an automated process (ESB).

 

Thanks in advance.

Outcomes