All call manager programming guides are available from this page: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
Thanks alot for your help, I read the java example in the AXL programming guide for CM 4.2(3).. I tried it, but it doesn't work with me, i receive the following error:
HTTP/1.1 401 Access Denied
I don't know why... could you help me please..
this is the code:
public static void main(String args)
String sAXLSOAPRequest = null; // will hold the complete request,
// HTTP header and SOAP payload
String sAXLRequest = null; // will hold only the SOAP payload
Socket socket = null; // socket to AXL server
OutputStream out = null; // output stream to server
InputStream in = null; // input stream from server
byte bArray = null; // buffer for reading response from server
// Build the HTTP Header
sAXLSOAPRequest = "POST /CCMApi/AXL/V1/soapisapi.dll\r\n";
sAXLSOAPRequest += "Host: 10.30.0.10:80\r\n";
sAXLSOAPRequest += "Authorization: Basic"+authstring+"\r\n";
//sAXLSOAPRequest += "Authorization: Basic bGFycnk6Y3VybHkgYW5kIG1vZQ==\r\n";
sAXLSOAPRequest += "Accept: text/*\r\n";
sAXLSOAPRequest += "Content-type: text/xml\r\n";
sAXLSOAPRequest += "Content-length: ";
// Build the SOAP payload
sAXLRequest = "
sAXLRequest += "
sAXLRequest += "sequence=\"1234\">
sAXLRequest += " ";
// finish the HTTP Header
sAXLSOAPRequest += sAXLRequest.length();
sAXLSOAPRequest += "\r\n\r\n";
// now add the SOAP payload to the HTTP header, which completes the AXL SOAP request
sAXLSOAPRequest += sAXLRequest;
// now that the message has been built, we can connect to server and send it
socket = new Socket("10.30.0.10", 80);
out = socket.getOutputStream();
in = socket.getInputStream();
// send the request to the host 10 AXL Programming Guide for Cisco Unified CallManager 4.2(3)OL-10660-01 Throttling of Requests
// read the response from the host
StringBuffer sb = new StringBuffer(2048);
bArray = new byte;
int ch = 0;
int sum = 0;
while ( (ch = in.read(bArray)) != -1 )
sum += ch;
sb.append(new String(bArray, 0, ch));
// output the response to the standard out
} catch (UnknownHostException e)
System.err.println("Error connecting to host: " + e.getMessage());
} catch (IOException ioe)
System.err.println("Error sending/receiving from server: " +
// close the socket
if (socket != null) socket.close();
} catch (Exception exc)
System.err.println("Error closing connection to server: " +
I enabled Basic Authentication in the IIS of the CM, But the error now is changed, the following appears in the debugger:
HTTP/1.1 500 Server Error
Date: Sun, 01 Jun 2008 18:34:04 GMT
Here is a handy little page that I use to launch SOAP messages at my Call Manager. You'll want to change the User and Password entries in line 17 as well as the host/name / IP address in line 47 to match your environment. Written by someone much smarter than I....
For some reason my AXL responds on the normal 443 port. I also found that I have issue with the SSL certificate. Because im using msxml2.xmlhttp to post the soap requests, I have to firsy open a browser to the CCM server accept the SSL cert with a warning about the name vs IP, then my post would work...
I was trying to use the getPhone.htm file with following sample code provided in the manual:
But it doesn't give me any values and I can see the "error on page" msg.
Please let me know where/how should I see the results and detect the errors in the XML or HTML.
FYI - this is my first attempt on AXL side of it.
I am trying to run this getPhones but I am getting the error "the requested resource CCMApi/AXL/V1/soapisapi.dll is not available.
I am using CUCM 6.1.2 and don't know how to change for it. I changed the line
var reqString = "http://"
var reqString = "https://"
but could not manage to change the port, if needed.
When I access the CUCM via the browser the ccm admin page runs under the 8443 port.
I am getting the same erros on the logs of the CUOM application and I am looking how to troubleshoot to see if some configuration on the CUCM 6.1.2 is missing.
Any help is appreciated.
There ia actually an AXL forum and message board which is probably a better place to post AXL questions there: