cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2726
Views
15
Helpful
4
Replies

doAuthenticateUser returning HTTP 599

stephan.steiner
Spotlight
Spotlight

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

4 Replies 4

BjoernMartin
Spotlight
Spotlight

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>

npetrele
Cisco Employee
Cisco Employee

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?

 

 

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>

David was right on track.. it's a version problem. Ran with a 12.5 config on my 11.5 lab

Getting Started

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: