Invalid Type on TransactionSearchAdvanced
I’m trying to retrieve a certain saved search using the SOAP Webservices API, but I’m not being able due to an Invalid Type error.
<soap:Envelope xmlns:platformFaults="urn:faults_2017_2.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2017_2.platform.webservices.netsuite.com" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:platform_2017_2.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sales="sales_2017_2.transactions.webservices.netsuite.com">
<soap:Header>
<tokenPassport>
<account>{oauth_creds["account"]}</account>
<consumerKey>{oauth_creds["consumerKey"]}</consumerKey>
<token>{oauth_creds["token"]}</token>
<nonce>{oauth_creds["nonce"]}</nonce>
<timestamp>{oauth_creds["timestamp"]}</timestamp>
<signature algorithm="HMAC-SHA256">{oauth_creds["signature"]["_value_1"]}</signature>
</tokenPassport>
</soap:Header>
<soap:Body>
<search>
<searchRecord xsi:type="sales:TransactionSearchAdvanced" savedSearchId="803" />
</search>
</soap:Body>
</soap:Envelope>
Above is the payload I’ve crafted in Python. Below is the response I’m getting
<?xml version="1.0" encoding="UTF-8"?>
<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">
<Body>
<Fault>
<faultcode>
soapenv:Server.userException
</faultcode>
<faultstring>
org.xml.sax.SAXException: Invalid type: {sales_2017_2.transactions.webservices.netsuite.com}TransactionSearchAdvanced
</faultstring>
<detail>
<hostname xmlns:ns1="http://xml.apache.org/axis/">
HOSTNAMEHERE
</hostname>
</detail>
</Fault>
</Body>
</Envelope>



