Hi
We are trying to add inventory items via Web services but have failed in setting the taxt code. Can anybody help with this please.
This is the type of SOPA message we send:
<listAcct:displayName>test</listAcct:displayName>
<listAcct:itemId>123</listAcct:itemId>
<listAcct:purchaseTaxCode xsi:type="platformCore:RecordRef">17.5%</listAcct:purchaseTaxCode>
<listAcct:salesTaxCode xsi:type="platformCore:RecordRef">17.5%</listAcct:salesTaxCode>
This is the error we get:
Array ( [faultcode] => soapenv:Server.userException [faultstring] => org.xml.sax.SAXException: Unable to marshall between XML and Castor Objects :Illegal Text data found as child of: purchaseTaxCode value: "17.5%" [detail] => Array ( [hostname] => sb-partners-java002.svale.netledger.com ) )
17.5% is the name of the tax code. we have also tried it's internal id and different SOPA like:
<listAcct:purchaseTaxCode xsi:type="platformCore:RecordRef"/>
<listAcct:salesTaxCode xsi:type="platformCore:RecordRef"/>
but we can't get it to work?
any suggestions?
Thanks
A