Discussions
SUDS Woes
I'm trying to build a Python application that talks to SuiteTalk, and I'm running into a problem with some of the XML that the Python SOAP library (SUDS) generates. If I manually create some XML to get a customer with SoapUI, it works very nicely:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:messages_2015_1.platform.webservices.netsuite.com" xmlns:urn1="urn:core_2015_1.platform.webservices.netsuite.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <soapenv:Header> <urn:preferences> </urn:preferences> <urn:partnerInfo> </urn:partnerInfo> <urn:applicationInfo> </urn:applicationInfo> <urn:passport> <urn1:email>*****</urn1:email> <urn1:password>*****</urn1:password> <urn1:account>*****</urn1:account> <!--Optional:--> <urn1:role internalId=*****> </urn1:role> </urn:passport> </soapenv:Header> <soapenv:Body> <urn:get> <urn1:baseRef internalId="2026" type="customer" xsi:type="urn1:RecordRef"/> </urn:get> </soapenv:Body> </soapenv:Envelope