I think I have a simple question but I cannot see the problem. Maybe another pair of eyes can see the mistake.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:platformFaults="urn:faults_2009_2.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2009_2.platform.webservices.netsuite.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:platform_2009_2.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <passport xmlns="urn:messages_2009_2.platform.webservices.netsuite.com" xmlns:tns1="urn:core_2009_2.platform.webservices.netsuite.com" xsi:type="tns1:Passport"> <tns1:email xmlns:tns1="urn:core_2009_2.platform.webservices.netsuite.com" xmlns:ns="http://www.w3.org/2001/XMLSchema" xsi:type="ns:string">EMAIL</tns1:email> <tns1:password xmlns:tns1="urn:core_2009_2.platform.webservices.netsuite.com" xmlns:ns="http://www.w3.org/2001/XMLSchema" xsi:type="ns:string">PASSWORD</tns1:password> <tns1:account xmlns:tns1="urn:core_2009_2.platform.webservices.netsuite.com" xmlns:ns="http://www.w3.org/2001/XMLSchema" xsi:type="ns:string">ACCOUNT</tns1:account> </passport> <applicationInfo xmlns="urn:messages_2009_2.platform.webservices.netsuite.com" xsi:type="platformMsgs:ApplicationInfo"/> <partnerInfo xmlns="urn:messages_2009_2.platform.webservices.netsuite.com" xsi:type="platformMsgs:PartnerInfo"/> <preferences xmlns="urn:messages_2009_2.platform.webservices.netsuite.com" xsi:type="platformMsgs:Preferences"/> </soapenv:Header> <soapenv:Body> <add xmlns="urn:messages_2009_2.platform.webservices.netsuite.com" xsi:type="platformMsgs:Add"> <record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns:Contact"> <ns:firstName xmlns:ns="urn:relationships_2009_2.lists.webservices.netsuite.com">MyFirstName</ns:firstName> <ns:lastName xmlns:ns="urn:relationships_2009_2.lists.webservices.netsuite.com">MyLastName</ns:lastName> </record> </add> </soapenv:Body> </soapenv:Envelope>
I then get this error message:<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.SAXException: Invalid type: Contact</faultstring> <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners-java011.svale.netledger.com</ns1:hostname> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
Why is the type invalid? It has to be something simple. Any idea?