CUCM 7.1 WSDL AXLAPIService

Unanswered Question
Jan 18th, 2010
User Badges:

Hi all,


I have the CUCM 7.1 WSDL imported and compiled into stub code in Eclipse (Java).


I was wondering if someone could explain how you actually setup the initial connection using the AXLAPIService and AXLPort. The reason I ask is because:


1. I can't find the actual URL for the CUCM WSDL so I can reference this in my code instead of a local file on disk (not very portable)

2. I can't for the life of me figure out where you actually put the AXL username and password into the AXLAPIService


If anyone has some example Java code on setting up the connection, URL for WSDL and authentication etc. it would be greatly appreciated.


I found this on a Networkers presentation, but it bears no resembelance to the CUCM 7.1 WSDL/XSDs you download from CUCM.



What do we have?
AXLAPIServiceLocator : Where is the service?
AXLAPIBindingStub : Container for all generated methods
AXL user and password have to be set
Create ServiceLocator and set AXL URL:


com.cisco.www.AXLAPIService.AXLAPIServiceLocator loc= new AXLAPIServiceLocator ();


loc.setAXLPortEndpointAddress("https://ccm2:8443/axl/");


Create stub and set user and password:


com.cisco.www.AXLAPIService.AXLAPIBindingStub stub =
(AXLAPIBindingStub)loc.getAXLPort();
stub.setUsername("admin");
stub.setPassword("someStrangePassword");


Ready to go!


Thanks,

Ken.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
davidpatton Mon, 01/18/2010 - 09:41
User Badges:

Have you checked out the Developer site with all of the AXL info?  The download from the CUCM is good f

or some basics but the advanced info on programming and the interface can be found from the developers portal.


This is the AXL Resource Page: http://developer.cisco.com/web/axl/resources


You should also look at the slide deck: http://developer.cisco.com/web/axl/start as it covers everything you are asking about. (It's also attached to this post.)


Good luck.


Dave Patton

Actions

This Discussion