AnsweredAssumed Answered

Feature Service ApplyEdits is giving error for Updates through SOAP

Question asked by majetivaraprasad on Oct 21, 2016
Latest reply on Nov 9, 2016 by majetivaraprasad

Hi,

 

I am running into an issue while I am trying to execute "ApplyEdits" task for updates through SOAP UI. I am facing below error.

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:client</faultcode>
         <faultstring>Error processing server request</faultstring>
         <detail/>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

 

When I checked ArcGIS Server logs, got below error..

 

SEVERE     Oct 21, 2016, 3:34:53 PM     Method failed.HRESULT = 0x80004005 : Unspecified error .     
SEVERE     Oct 21, 2016, 3:34:53 PM     An error occurred.     

 

Adds and Deletes as part of ApplyEdits task are working fine. It is just that when I am trying to include Update related tags, I am running into above mentioned error.

 

Below are the various SOAP message XML I am trying with...

 

Message 1:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ns="http://www.esri.com/schemas/ArcGIS/10.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Header/>
   <soapenv:Body>
      <ns:ApplyEdits>
         <TableEdits>
            <!--Zero or more repetitions:-->
            <TableEdit>
               <Adds>
                  <DataObjectArray>                 
                  </DataObjectArray>                 
               </Adds>
               <Deletes>             
               </Deletes>
               <LayerOrTableID>1</LayerOrTableID>
               <Updates>
                  <DataObjectArray>
                  <DataObject xsi:type="ns:GraphicFeature">                      
                        <Properties>
                           <PropertyArray>
                                <PropertySetProperty>
                                 <Key>OBJECTID</Key>
                                 <Value>9138</Value>
                              </PropertySetProperty>                              
                              <PropertySetProperty>
                                 <Key>Field1</Key>
                                 <Value>Clow Corporation</Value>
                              </PropertySetProperty>
                              <PropertySetProperty>
                                 <Key>Field2</Key>
                                 <Value>179841833227</Value>
                              </PropertySetProperty>
                           </PropertyArray>
                        </Properties>
                     </DataObject>                  
                  </DataObjectArray>                 
               </Updates>
            </TableEdit>
         </TableEdits>       
      </ns:ApplyEdits>
   </soapenv:Body>
</soapenv:Envelope>

 

Message 2:

 

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://www.esri.com/schemas/ArcGIS/10.4"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Header/>
   <soapenv:Body>
      <tns:ApplyEdits>
         <TableEdits>
            <!--Zero or more repetitions:-->
            <TableEdit>
               <Adds>
                  <DataObjectArray>   
                  <DataObject xsi:type="tns:GraphicFeature"> 
                  <Properties xsi:type="tns:PropertySet"> 
                    <PropertyArray xsi:type="tns:ArrayOfPropertySetProperty">                                                                            
                        <PropertySetProperty xsi:type="tns:PropertySetProperty">
                           <Key>Field1</Key>
                           <Value xsi:type="xsd:string">179841833227</Value>
                        </PropertySetProperty>
                    </PropertyArray> 
                  </Properties> 
                  <Geometry xsi:type="tns:PointN"> 
                    <X>187974.69999999925</X> 
                    <Y>334501.1000000015</Y> 
                  </Geometry> 
                   </DataObject>                  
                  </DataObjectArray>                                   
               </Adds>
               <Deletes>
                 <int>2259</int>
               </Deletes>
               <LayerOrTableID>0</LayerOrTableID>
               <Updates>
                  <DataObjectArray>
                     <!--Zero or more repetitions:-->
                      <DataObject xsi:type="tns:GraphicFeature"> 
                  <Properties xsi:type="tns:PropertySet"> 
                    <PropertyArray xsi:type="tns:ArrayOfPropertySetProperty"> 
                        <PropertySetProperty xsi:type="tns:PropertySetProperty">                           
                          <Key>OBJECTD</Key>
                          <Value xsi:type="xsd:int">1801</Value>
                        </PropertySetProperty>                                               
                        <PropertySetProperty xsi:type="tns:PropertySetProperty">
                           <Key>Field1</Key>
                           <Value xsi:type="xsd:string">179841833227</Value>
                        </PropertySetProperty>                         
                    </PropertyArray> 
                    <Geometry xsi:type="tns:PointN"> 
                    <X>187974.69999999925</X> 
                    <Y>334501.1000000015</Y> 
                  </Geometry>
                  </Properties>                   
                   </DataObject>  
                  </DataObjectArray>
               </Updates>
            </TableEdit>
         </TableEdits>
         <RollbackOnFailure>true</RollbackOnFailure>        
      </tns:ApplyEdits>
   </soapenv:Body>
</soapenv:Envelope>

 

I am unable to get the proper XML for Updates as part of ApplyEdits. Could someone please help me in resolving this.

 

Thanks & Regards,

Vara Prasad.

Outcomes