06-20-2021 08:14 PM - edited 06-20-2021 08:19 PM
Hey everyone,
Trying to get the SOAP API to respond nicely to my getPhone request but it is not letting me in.
I've tried so many possible combinations of the namespace and the header, and it still gives me an error message stating "Message: Wrong axl version, supported versions are 9.x,10.x and 11.0".
My CUCM version is 11.5.
My SOAPAction header is set to 11.0
My xmlns:ns is set to http://www.cisco.com/AXL/API/11.0
I am not sure what I am doing wrong. I have permission and the API seems to be responding fine. I would appreciate any help or direction. I've tried setting both the versions to 11.5 but no dice.
03-28-2022 01:07 PM
Can you provide the script you're trying to run? Or if you're using Postman, a screenshot would be fine.
09-28-2022 09:59 AM
Below is a complete successful request against my 11.5 lab instance. I sometimes miss the double quotes around the SOAPAction value
POST https://ds-ucm115-1.cisco.com:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM:DB ver=11.5 getPhone"
Authorization: Basic QWRtaW5pc3RyYXRvcjpjaXNjb3BzZHQ=
JSESSIONIDSSO: C7AB2F6B07C1FEAE397784670B442B0C; Path=/; Secure; HttpOnly
Content-Length: 273
Host: ds-ucm115-1.cisco.com:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.1)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
<soapenv:Header/>
<soapenv:Body>
<ns:getPhone>
<name>CSFdstaudt</name>
</ns:getPhone>
</soapenv:Body>
</soapenv:Envelope>
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