Hello Guys,
I'm using the SOAP technology to add an invoice. I used this syntax :
<?xml version="1.0" encoding="UTF-16" ?>
- http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header>
<SessionID>F48F5206-EC11-43F3-F330-3AFEAF5F315E</SessionID>
</env:Header>
- <env:Body>
- http://www.sap.com/SBO/DIS" CommandID="Add invoice">
- <BOM>
- <BO>
- <AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
- <Documents>
- <row>
<DocNum>20050723</DocNum>
<HandWritten>1</HandWritten>
<DocCurrency>PHP</DocCurrency>
<CardCode>0001</CardCode>
<CardName>WALK-IN</CardName>
<DocDate>07/23/2005</DocDate>
<DocDueDate>07/23/2005</DocDueDate>
<NumAtCard>20050723</NumAtCard>
<JournalMemo>A/R Invoice - 20050723</JournalMemo>
<DocTotal>36.14</DocTotal>
</row>
</Documents>
- <Document_Lines>
- <row>
<ItemCode>000100</ItemCode>
<Quantity>1</Quantity>
<Price>36.14</Price>
<VatGroup>VAT-OUT</VatGroup>
</row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
But i got an error response :
<?xml version="1.0" ?>
- http://www.w3.org/2003/05/soap-envelope">
- <env:Body>
- <env:Fault>
- <env:Code>
<env:Value>env:Receiver</env:Value>
- <env:Subcode>
<env:Value>-1004</env:Value>
</env:Subcode>
</env:Code>
- <env:Reason>
<env:Text xml:lang="en">[OINV] , 'Error (-1004) encountered.'</env:Text>
</env:Reason>
- <env:Detail>
<Object>13</Object>
<ObjectIndex>1</ObjectIndex>
<Command>AddObject</Command>
<CommandID>Add invoice</CommandID>
<SessionID>AE57A67D-1E56-4909-249C-D1F766BD868B</SessionID>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
What should i do?