msabir Tue, 10/23/2007 - 05:23
User Badges:
  • Bronze, 100 points or more

The following is the Java code to view phone description. It calls AXL web service and gets the list of phone and loops through them to find description of each phone:

// Call the web service and get results

SelectCmDeviceResult results = proxy.selectCmDevice(stateInfo, cmSelectionCriteria);

Object cmNodes[] = results.getCmNodes();

Object devices[] = cmNodes[0].getCmDevices();

for (int i = 0; i < devices.length; i++) {

CmDevice cmDevice = (CmDevice) devices[i];

String description=cmDevice.getDescription();


Davide Fiumi Tue, 10/23/2007 - 08:03
User Badges:

My problem is to understand how i can call the web service and get results from JAVA.

Can you send me an example code?

your code works only with callManager 5?

with 4?

msabir Tue, 10/23/2007 - 12:04
User Badges:
  • Bronze, 100 points or more

It works with both CCM 4 and 5 (possibly with 6 as well). If you use Eclipse 3.3, it will create all Java classes for you from WSDL file. All you have to do, is to call those classes, like I showed in the code sample above. Once you have stub classes created, my code above will start to make sense. I am thinking to write a quick tech note on how to use AXL in CCM using Eclipse and WSDL.

NetBeans 5.5.1 or 6.0 beta 1, can also do the same but I am more familiar with Eclipse.


This Discussion