AXL Beginer

Unanswered Question
May 29th, 2008

Dear Sir,

I am an AXL Beginer Developer, I need any simple example using AXL to begin with.

I need to know format of the file, is it .asp file or xml file?



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
marwa_ads Mon, 06/02/2008 - 00:34

Dear Stephan,

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

Server: Microsoft-IIS/5.0


I don't know why... could you help me please..

this is the code:



class main


public static void main(String[] args)


//Declare references

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:\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 += "xmlns:xsi=\"\" xmlns:xsd=\"\"> ";

sAXLRequest += "\" ";

sAXLRequest += " xsi:schemaLocation=\"\" ";

//sAXLRequest += " xsi:schemaLocation=\" http://localhost/schema/axlsoap.xsd\" ";

sAXLRequest += "sequence=\"1234\"> SEP000E7BC54F2A ";

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("", 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[2048];

int ch = 0;

int sum = 0;

while ( (ch = != -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: " +







Thanks alot,


marwa_ads Mon, 06/02/2008 - 02:22

Dear Stephan,

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

Server: Microsoft-IIS/5.0

Date: Sun, 01 Jun 2008 18:34:04 GMT

Content-Type: text/html

Content-Length: 94

ErrorInvalid access to memory location.




wschochet Tue, 06/03/2008 - 09:20

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....

Jeff Garner Wed, 07/02/2008 - 11:29

Any one know what you need to do to modify this to work with CCM 5.x / 6.x. This works find for CCM 4.x but I get errors with 6.x

jaregalado Tue, 07/08/2008 - 21:14


the URL and port numbers are different for CCM 4.x and 5.x/6.x

For CCM 4.x


For CCM 5.x and 6.x



Jeff Garner Wed, 07/09/2008 - 06:45

Thanks I did get mine working, however I my system did not work with the https://$CCM:8443/axl/ Only https://$CCM/axl/

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...

rameshbalajiv Thu, 07/17/2008 - 10:34


I was trying to use the getPhone.htm file with following sample code provided in the manual:">




xsi:schemaLocation=" axlsoap.xsd">

SELECT * from numplan

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.

Thank You

Ramesh V.

rgomes Thu, 08/21/2008 - 14:21


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. Tue, 03/17/2009 - 05:18

Can you give me the plan how I can run getPhone.htm to retreive info from DB?

Run in browser? Wed, 07/01/2009 - 05:09


Could you answer for my question?

Can you give me the plan how I can run getPhone.htm to retreive info from DB?

Run in browser?


This Discussion