on 11-02-2015 5:48 PM
I am trying to use BatchInteract function in DI Server to create 2 tickets for two existing sales order
See request xml below,
I am trying to use BatchInteract function in DI Server to create 2 tickets for two existing sales order
See request xml below,
<?xml version="1.0" encoding="UTF-16"?>
<Envelopes>
<?xml version="1.0" ?>
<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:Header>
<MsgHeader
xmlns="http://www.sap.com/SBO/DIS">
<SessionID>EC2EF820-76DC-4079-AFDB-64D04AB5D6A7</SessionID>
<ServiceName>PickListsService</ServiceName>
</MsgHeader>
</soap:Header>
<soap:Body>
<Add
xmlns="PickListsService">
<PickList
xmlns="http://www.sap.com/SBO/DIS">
<PickListsLines>
<PickListsLine>
<OrderEntry>704240</OrderEntry>
<OrderRowID>0</OrderRowID>
<ReleasedQuantity>1.000000</ReleasedQuantity>
<BaseObjectType>17</BaseObjectType>
</PickListsLine>
</PickListsLines>
</PickList>
</Add>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" ?>
<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:Header>
<MsgHeader
xmlns="http://www.sap.com/SBO/DIS">
<SessionID>EC2EF820-76DC-4079-AFDB-64D04AB5D6A7</SessionID>
<ServiceName>PickListsService</ServiceName>
</MsgHeader>
</soap:Header>
<soap:Body>
<Add
xmlns="PickListsService">
<PickList
xmlns="http://www.sap.com/SBO/DIS">
<PickListsLines>
<PickListsLine>
<OrderEntry>704241</OrderEntry>
<OrderRowID>0</OrderRowID>
<ReleasedQuantity>1.000000</ReleasedQuantity>
<BaseObjectType>17</BaseObjectType>
</PickListsLine>
</PickListsLines>
</PickList>
</Add>
</soap:Body>
</soap:Envelope>
</Envelopes>
But i am getting the below error message in response when i do DISNode.BatchInteract(xmlCommand);
<?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:Sender</env:Value>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Invalid XML</env:Text>
</env:Reason>
<env:Detail>
<ErrorList>
<Error>System Id = 244186984, Line Number = 1, Column Number = 56, Description = No processing instruction starts with 'xml'</Error>
</ErrorList>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
Any help to point me to what i am missing is appreciated
Hi Edwin,
on first look : leave out the <?xml version="1.0" ?> nodes ( apart from first one ).
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.