I'm trying to integrate Quickbooks API with our system - add user / modify user / add sale request are fine; the only request I've got problems with is the sale modification.
For the given XML:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="UK2.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesReceiptModRq requestID="25">
<SalesReceiptMod>
<ListID>80000003-1409581902</ListID>
<EditSequence>1409583199</EditSequence>
<CustomerRef>
<FullName>Support Team</FullName>
</CustomerRef>
<RefNumber>00000017</RefNumber>
<BillAddress>
<Addr1>2 House Number</Addr1>
<Addr2>House Street</Addr2>
<City>City</City>
<PostalCode>POST CODE</PostalCode>
<Country>GB</Country>
</BillAddress>
<ShipAddress>
<Addr1>2 House Number</Addr1>
<Addr2>House Street</Addr2>
<City>City</City>
<PostalCode>POST CODE</PostalCode>
<Country>GB</Country>
</ShipAddress>
<SalesReceiptLineAdd>
<ItemRef>
<FullName>Standard Sales</FullName>
</ItemRef>
<Desc>Funtec Beach Line Festival Ball - <p>A good quality light and soft beach volleyball as used at Europes largest beach volleyball festival</p></Desc>
<Quantity>1</Quantity>
<Rate>19.95</Rate>
</SalesReceiptLineAdd></SalesReceiptMod>
</SalesReceiptModRq>
</QBXMLMsgsRq>
</QBXML>
the validator gives me error:
Src Text: <SalesReceiptModRq requestID="25">
Reason: Element content is invalid according to the DTD/Schema.
Of course it would be good if I had an access to DTD for QBXML. According to this DTD (http://apps.quickbooks.com/dtds/qbxmlops60.dtd) my XML should be valid (SalesReceiptModRq with required requestID); though it's not correct one I hoped it would be similar enough to provide me with information on what is wrong.
So, dear SO - what's wrong with my XML and how can I make SalesReceiptModRq requests