S
snacktime
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="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:login xmlns:n1="urn:messages_2_5.platform.webservices.netsuite.com"
xmlns:n2="urn:core_2_5.platform.webservices.netsuite.com"
xsi:type="n2assport">
<n2:email>[email protected]</n2:email>
<n2assword>XXXXXX</n2assword>
<n2:account>999999</n2:account>
</n1:login>
</env:Body>
</env:Envelope>
Netsuite sample:
soap:Body>
<platformMsgs:login>
<platformMsgsassport>
<platformCore:email>[email protected]</platformCore:email>
<platformCoreassword>Cracker1</platformCoreassword>
<platformCore:account>111111</platformCore:account>
</platformMsgsassport>
</platformMsgs:login>
</soap:Body>
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="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:login xmlns:n1="urn:messages_2_5.platform.webservices.netsuite.com"
xmlns:n2="urn:core_2_5.platform.webservices.netsuite.com"
xsi:type="n2assport">
<n2:email>[email protected]</n2:email>
<n2assword>XXXXXX</n2assword>
<n2:account>999999</n2:account>
</n1:login>
</env:Body>
</env:Envelope>
Netsuite sample:
soap:Body>
<platformMsgs:login>
<platformMsgsassport>
<platformCore:email>[email protected]</platformCore:email>
<platformCoreassword>Cracker1</platformCoreassword>
<platformCore:account>111111</platformCore:account>
</platformMsgsassport>
</platformMsgs:login>
</soap:Body>