Unable to update / delete a record using SOAP Webservices

AbdulAzeez
Mega Guru

Hello All,

I am working on SOAP Webservices using Instance to Instance configuration..

I have a Dev Instance #1 where if i insert i can see that the record is created on Dev Instance #2 but when i am trying to update the existing record system is hitting an error on HTTP status: 500

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</faultstring><detail>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Note: I provide the sys_id of existing record which i get it from Dev Instance #2.

Please help me out this, thanks in advance.

1 ACCEPTED SOLUTION

Hi Abdul Azeez,



Please try this SOAP message and let me know



<short_description>test</short_description>


<state>2</state>


<sys_id>5bc258724f213200ead63ce18110c705</sys_id>



You should not include ${} in the message.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

11 REPLIES 11

harishdasari
Tera Guru

Hi Abdul,



Refer to this link you will get some idea how to fix it.



http://wiki.servicenow.com/index.php?title=SOAP_Direct_Web_Service_API#deleteRecord




<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">     <soapenv:Header/>     <soapenv:Body>           <inc:deleteRecord>                 <sys_id>46e18c0fa9fe19810066a0083f76bd56</sys_id>           </inc:deleteRecord>     </soapenv:Body></soapenv:Envelope>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">


    <soapenv:Header/>


    <soapenv:Body>


          <inc:deleteRecord>


                <sys_id>46e18c0fa9fe19810066a0083f76bd56</sys_id>


          </inc:deleteRecord>


    </soapenv:Body>


</soapenv:Envelope>





Thanks


AbdulAzeez
Mega Guru

Hi Harish,



Thanks for the response.



As mentioned i given the sys_id & Short description but still i getting an error saying that no sys_id.



<short_description>${testing}</short_description>


                <!--Optional:-->


                <sla_due>${update.sla_due}</sla_due>


                <!--Optional:-->


                <state>${update.state}</state>


                <!--Optional:-->


                <subcategory>${update.subcategory}</subcategory>


                <sys_id>${5bc258724f213200ead63ce18110c705}</sys_id>


                <!--Optional:-->




Response: Http: 500
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</faultstring><detail>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>


Hi Abdul Azeez,



Please try this SOAP message and let me know



<short_description>test</short_description>


<state>2</state>


<sys_id>5bc258724f213200ead63ce18110c705</sys_id>



You should not include ${} in the message.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


Alikutty,



that actually works. thank you;