cancel
Showing results for 
Search instead for 
Did you mean: 

DI Server

Former Member
0 Kudos

Hi ,who know why I can't remove a message in DI server ,and I got the message :

<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:Code><env:Reason><env:Text xml:lang="en">Key not supplied</env:Text></env:Reason><env:Detail><Key></Key><Object>81</Object><Command>RemoveObject</Command><SessionID>7DD49CC5-D9CC-726C-A506-350930DA3EC1</SessionID></env:Detail></env:Fault></env:Body></env:Envelope>

this is the remove xml string

<?xml version="1.0" encoding="UTF-16" ?>

- <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

- <env:Header>

<SessionID>7DD49CC5-D9CC-726C-A506-350930DA3EC1</SessionID>

</env:Header>

- <env:Body>

- <dis:RemoveObject xmlns:dis="http://www.sap.com/SBO/DIS">

- <BOM>

- <BO>

- <AdmInfo>

<Object>oMessages</Object>

</AdmInfo>

- <QueryParams>

<Code>14</Code>

</QueryParams>

</BO>

</BOM>

</dis:RemoveObject>

</env:Body>

</env:Envelope>

Who know the reason ?

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wei,

As you can see in your error XML: <b>Key not supplied</b>.

If you want to delete an object you have to provide the object (oMessages) and the <i>key</i> of the object you want to delete, not the code.

Hope it helps,

Rowdy

Former Member
0 Kudos

Hi Wei/Rowdy,

I'm sorry to say that there is no GetByKey or Remove method for SAPbobsCOM.Messages. Please refer to

Hope that helps.

Nick

Message was edited by: Nick He

Former Member
0 Kudos

thanks ,Yes ,there are no remove methods. If I want to remove some object in business one ,I should check if the object has the remove method .

thank any way .

Answers (0)