CRUD Operations using SOAP on sage x3

Hi All, 

I was trying to delete a record from sage x3 using SOAP web service but I cannot see any online example of deleting through SOAP. Can we delete a record using SOAP web service from sage x3 ? If yes, can anybody please provide me with an example for that. 

I have tried making a new web sevice for deletion I guess import and export web service within sage x3 cannot do the deletion task, correct me if I am wrong?

  • If you are using an object based web service, you should be able to change the SOAP action to delete and use the same context as a read.  The body should look similar to this:

      <soapenv:Body>
        <wss:delete soapenv:encodingStyle="">schemas.xmlsoap.org/.../">
          <callContext xsi:type="wss:CAdxCallContext">
            <codeLang xsi:type="xsd:string">ENG</codeLang>
            <poolAlias xsi:type="xsd:string">TEST</poolAlias>
            <poolId xsi:type="xsd:string"></poolId>
            <requestConfig xsi:type="xsd:string"></requestConfig>
          </callContext>
            <publicName xsi:type="xsd:string">BPC</publicName>
            <objectKeys xsi:type="wss:ArrayOfCAdxParamKeyValue" soapenc:arrayType="wss:CAdxParamKeyValue[]">
                <keys>
                    <key>BPCNUM</key><value>BPC01234</value>
                </keys>
           </objectKeys>  
          </wss:delete>
       </soapenv:Body>