AnsweredAssumed Answered

Autotask query operation format of request message

Question asked by nikolai.blackie on Nov 23, 2017

What are you supposed to pass into the Autotask connector to support a query? I can get a SOAP connection to work fine with this message. With the Autotask connector I get lots of SAX parse exceptions try to pass in the queryXML

 

Embedded message: Could not unmarshall query filter; Caused by: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 8; cvc-elt.1: Cannot find the declaration of element 'query'.]; Caused by: cvc-elt.1: Cannot find the declaration of element 'queryxml'.

 

SOAP Requests that work:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://autotask.net/ATWS/v1_5/">
<soapenv:Header>
<v1:AutotaskIntegrations>

</v1:AutotaskIntegrations>
</soapenv:Header>
<soapenv:Body>
<v1:query>
<!--Optional:-->
<v1:sXML xmlns:v1="http://autotask.net/ATWS/v1_5/"><![CDATA[<queryxml><entity>contact</entity><query><field>firstname<expression op="equals">Michael</expression></field></query></queryxml>]]></v1:sXML>
</v1:query>
</soapenv:Body>
</soapenv:Envelope>

Outcomes