Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
XML parse error on async operations
I'm trying to use the asyncAddList operation to create a large purchase order, and I am running into an unusual XML error (one that I do not see when performing normal add/update/delete operations). For background, the platform is Ruby 1.8.6 with the SOAP module (1.6.1-snapshot I think) and an autogenerated class file from wsdl2ruby. Here's what the top portion of my request XML looks like:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <n1:asyncAddList xmlns:n1="urn:messages_2_6.platform.webservices.netsuite.com"> <n1:record xsi:type="n2:PurchaseOrder" xmlns:n2="urn:purchases_2_6.transactions.webservices.netsuite.com"> <n2:entity internalId="21" xsi:type="n3:RecordRef" xmlns:n3="urn:core_2_6.platform.webservices.netsuite.com"/> <n2:itemList replaceAll="true"> <n2:item> <n2:item xsi:type="n4:RecordRef" externalId="Foo-V-12345" type="inventoryItem" xmlns:n4="urn:core_2_6.platform.webservices.netsuite.com"/> <n2:quantity>30</n2:quantity> </n2:item>
0