11-24-2014 06:38 AM
Hello,
I try to querry the AXL but i receive a SoapEnv: Fault
Send:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<SOAP-ENV:Body>
<executeSQLQuery sequence="1416839392254">
<sql>select pkid, name from devicepool</sql>
</executeSQLQuery>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>error: The document is not a executeSQLQuery@http://www.cisco.com/AXL/API/8.5: document element namespace mismatch expected "http://www.cisco.com/AXL/API/8.5" got ""</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Something seems wrong?
Thanks !
Solved! Go to Solution.
11-24-2014 06:55 AM
I believe the way the namespace is declared, as 'ns', that the request element name should be 'ns:executeSQLQuery'
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<soapenv:Header/>
<soapenv:Body>
<ns:executeSQLQuery sequence="?">
<sql>?</sql>
</ns:executeSQLQuery>
</soapenv:Body>
</soapenv:Envelope>
11-24-2014 06:55 AM
I believe the way the namespace is declared, as 'ns', that the request element name should be 'ns:executeSQLQuery'
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<soapenv:Header/>
<soapenv:Body>
<ns:executeSQLQuery sequence="?">
<sql>?</sql>
</ns:executeSQLQuery>
</soapenv:Body>
</soapenv:Envelope>
11-24-2014 07:02 AM
That's right, it's working,
Thanks a lot!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide