Since I’m not a soap expert I thought I would ask. The following soap
message isn’t accepted by Netsuite, and their apache axis server
throws an exception about not being able to marshal the data.
Netsuite say’s the soap messages should be in doc literal format. Is
it? Are there any options to soap4r to get it to format messages more
like the second example below? Their example soap request is
structured a bit differently, I included it at the bottom of this
message.
My soap message, makes server throw a marshalling error.
<?xml version="1.0" encoding="utf-8" ?><env:Envelope xmlns:xsd=“XML Schema”
xmlns:env=“http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
env:Body
<n1:login
xmlns:n1=“urn:messages_2_5.platform.webservices.netsuite.com”
xmlns:n2=“urn:core_2_5.platform.webservices.netsuite.com”
xsi:type=“n2:Passport”>
n2:email[email protected]</n2:email>
n2:passwordXXXXXX</n2:password>
n2:account999999</n2:account>
</n1:login>
</env:Body>
</env:Envelope>
Netsuite sample:
soap:Body>
platformMsgs:login
platformMsgs:passport
platformCore:email[email protected]</platformCore:email>
platformCore:passwordCracker1</platformCore:password>
platformCore:account111111</platformCore:account>
</platformMsgs:passport>
</platformMsgs:login>
</soap:Body>