Hi all,
I'm new to soap and could use some help. I'm using the SuiteTalk WSDL with soapUI. I can login using my NetSuite details, and that works fine. But when I try to use 'get','update' or 'search', I get errors. For example a simple 'get' operation:
This is the request(I changed the fields in passport):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:messages_2013_1.platform.webservices.netsuite.com" xmlns:urn1="urn:core_2013_1.platform.webservices.netsuite.com"> <soapenv:Header> <urn:passport> <urn1:email>USERNAME</urn1:email> <urn1:password>PASSWORD</urn1:password> <urn1:account>ACCOUNTNO</urn1:account> </urn:passport> </soapenv:Header> <soapenv:Body> <urn:get> <urn:baseRef internalId="111" type="customer" xsi:type="platformCore:RecordRef"> <urn:name/> </urn:baseRef> </urn:get> </soapenv:Body> </soapenv:Envelope>
And this is the response I get:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:type" associated with an element type "urn:baseRef" is not bound.</faultstring> <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners-java013.svale.netledger.com</ns1:hostname> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
I've gotten this error for every operation I've tried so far. Is there something i'm missing in the request? Should I be referencing something else in the request?Any help would be greatly appreciated!