01-22-2021 06:16 AM
where I find the AXL API documentation, to work with Java??
01-22-2021 07:16 AM
There is no specific AXL Java library. Simply create your Java application to use SOAP requests and responses and use the AXL SOAP API documentation.
The current stable version of Java is Java 15.02. Older versions of Java (1.8, for example), included tools called wsimport and wsgen, which you could use to generate Java classes from the AXL WSDL. Honestly, that method of using AXL in Java left a lot to be desired, and these tools are no longer included in the latest versions of Java. There may still be an open source utility to generate classes from WSDLs, but I haven't tried any of them.
01-22-2021 07:28 AM - edited 01-22-2021 07:55 AM
Any documentation explaining the following methods?
AddSipTrunkReq addSipTrunkReq = new AddSipTrunkReq();
XSipTrunk xSipTrunk = new XSipTrunk();
XFkType xFkTypeDevicePool = new XFkType();
AXLAPIService axlService = new AXLAPIService();
AXLPort axlPort = axlService.getAXLPort();
01-22-2021 08:51 AM
This project collects a few AXL/Java samples showing use of WSDL-based code generation and attempts to implement some important best-practices: https://github.com/CiscoDevNet/axl-java-samples
The methods you are listing above would come from a library autogenerated by JAX-WS (this project uses this implementation: https://github.com/eclipse-ee4j/metro-jax-ws) by reading the AXL WSDL files.
AddSipTrunkReq() represents an individual SOAP method, here corresponding to addSipTrunk. The JAX-WS code generation should create such methods for all of the AXL requests.
Use of AXL with JAX-WS is pretty complicated/involved, and as with any specific framework based on WSDL consumption (see .NET or Zeep) is not directly supported by Cisco. If you only have a few simple AXL requests you need to deal with, it may be (far) easier to just treat the requests as XML strings sent over HTTP, rather than trying to use the WSDL-based stack...
01-22-2021 12:14 PM
has more information about this JAX-WS auto-generated library.
I am a bit lost. How could I create a routePoint or a CtiPort through code? Thanks for the help
01-25-2021 02:13 PM
Replied in the cross-posted thread here: https://github.com/CiscoDevNet/axl-java-samples
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide