How to create a Web Services API client for Client Automation using Eclipse

Document ID : KB000072797
Last Modified Date : 20/03/2018
Show Technical Document Details
Question:
How to create a Web Services API client for Client Automation using Eclipse?
Environment:
Client Automation (ITCM) -- any version.
Answer:
Use Axis version 1_4, the same version used by the ITCM Web Admin Console:
https://archive.apache.org/dist/ws/axis/1_4/

Here are the high-level steps to follow:
1- Download Axis 1_4.
2- Copy the wsdl file webserviceapi.wsdl locally.
3- We need to make sure all the axis jar libraries are in the classpath.
4- Execute the command 'org.apache.axis.wsdl.WSDL2Java webserviceapi.wsdl -p com.ca.wac.wsstubs'.  This command generated the required stubs.
5- From here you can create a simple java project in Eclipse, set the axis libraries in the eclipse build path, import the generated stubs into the project and write a client to use these Webservices.