08-08-2021 05:29 AM
It's been many years since I've been doing this, but I finally needed to validate user credentials again. So I'm sending this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"><soapenv:Header/><soapenv:Body><ns:doAuthenticateUser sequence="0"><userid>ciscotest25@nxodev.intra</userid><pin>134679</pin></ns:doAuthenticateUser></soapenv:Body></soapenv:Envelope>
And AXL just freaks out and sends an HTML page with a 599 status code.
CUCM version is 12.5.1.14900-63
Any idea what's going on here? The request should be simple enough
08-09-2021 03:19 AM
Hello.
Your content looks great.
Which CUCM version do you use?
I tested doAuthenticated in my lab environment and CUCM response with ......
REQUEST:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header />
<soapenv:Body>
<ns:doAuthenticateUser sequence="0">
<userid>bmartin@rsc-lab.de</userid>
<pin>123456</pin>
</ns:doAuthenticateUser>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:doAuthenticateUserResponse xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<return>
<userAuthenticated>true</userAuthenticated>
<code>0</code>
<daysToExpiry>0</daysToExpiry>
<isWarningNeeded>false</isWarningNeeded>
</return>
</ns:doAuthenticateUserResponse>
</soapenv:Body>
</soapenv:Envelope>
08-09-2021 06:56 AM - edited 08-09-2021 06:58 AM
It works fine for me, although I'm using 12.5.1.13900-152. I'm upgrading the lab server to 159 today.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header/>
<soapenv:Body>
<ns:doAuthenticateUser sequence="0">
<userid>npetrele@cisco.com</userid>
<!--You have a CHOICE of the next 2 items at this level-->
<pin>5555</pin>
</ns:doAuthenticateUser>
</soapenv:Body>
</soapenv:Envelope>
Did you forget to code Basic Authentication into your request?
08-09-2021 10:55 AM
The 599 response means that you're requesting an AXL version not supported by the UCM. E.g. sending a request with SOAPAction header or XML namespace of v12.5 to an v11.5 system, or requesting v8 from a v12.5 system.
See this table for which UCM versions support which AXL versions: https://developer.cisco.com/docs/axl/#versioning
Note, both the SOAPAction header and XML namespace need to be provided, and the versions need to match:
POST https://ds-ucm1251.cisco.com:8443/axl/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "CUCM:DB ver=12.5 doAuthenticateUser" Content-Length: 346 Host: ds-ucm1251.cisco.com:8443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.5 (Java/11.0.12) Authorization: Basic QWRtaW5pc3RyYXRvcjpjaXNjb3BzZHQ= <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"> <soapenv:Header/> <soapenv:Body> <ns:doAuthenticateUser sequence="1"> <userid>dstaudt</userid> <password>password</password> </ns:doAuthenticateUser> </soapenv:Body> </soapenv:Envelope>
09-19-2021 12:18 PM
David was right on track.. it's a version problem. Ran with a 12.5 config on my 11.5 lab
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: