cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3882
Views
16
Helpful
7
Replies

AXL api for CUCM 11.5

if i call axl any api for call manager 11.5, i get response as " The AXL Web Service is working and accepting requests. Use HTTP POST to send a request. "  example when running getPhone api. instead of requested phone data.

Request :

    <soapenv:Header/>
    <soapenv:Body>
        <ns:getPhone>
            <name>SEPDD2338878585</name>
        </ns:getPhone>
    </soapenv:Body>
</soapenv:Envelope>"

 

Response:

 

<html>
<head>
<title>Cisco CallManager: AXL Web Service</title>
</head>
<body>
<h1>Cisco CallManager: AXL Web Service</h1>
<p>The AXL Web Service is working and accepting requests.
Use HTTP POST to send a request.</p>
</body>
</html>

 

Please suggest me why i am getting this responce instead of phone details.

 

images 1.png

 

2.png

 

3.png

 

 

7 Replies 7

Evgeny Udaltsov
Level 1
Level 1

Hi, the first thing you need to do is a GET request to your CUCM and get Authorization Key.

GetCUCM.jpg

 

Then you can modify you Get Request to POST Request with 2 Headers: Authorization Key (you get it from previous GET query) and SOAPAction with "CUCM:DB ver=11.5 getPhone" value


PostCUCM_0.jpg

 

The Body will be
<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>CSF94953388</name>
             </ns:getPhone>
        </soapenv:Body>
     </soapenv:Envelope>

 

 

PostCUCM.jpg

 

Hope this help you!

i tried the steps but did not get the desired output.

same with me as well. I have the auth token in my header , along with SOAPAction and content-type as well. Just getting generic output on CUCM v 11.5 ,

<html>
<head>
<title>Cisco CallManager: AXL Web Service</title>
</head>
<body>
<h1>Cisco CallManager: AXL Web Service</h1>
<p>The AXL Web Service is working and accepting requests.
Use HTTP POST to send a request.</p>
</body>
</html>

Can you try using the AXL URI with trailing slash?  E.g.:

https://host.com:8443/axl/

I feel stupid now - but that was it.

This was my error, 

Thanks!

The trailing / solved my problem