Previous Topic: Prepare an Identity Manager Environment for Web Services

Next Topic: Create a Java Jar File for the Complied Proxy Classes

Build Apache Axis Java Proxy Classes

The Apache Axis framework includes a utility WSDL2JAVA that generates Java proxy source code (.java files) based on WSDL. Once the Java files are generated, they need to be compiled into Java classes.

When invoking WSDL2JAVA, pass the name of the Identity Manager WSDL URL for the Identity Manager Environment. In the following example, MyCorp is the name of the environment.

wsdl2java  --timeout -1  –-output genoutput  http://localhost:8080/idm/TEWS6/MyCorp?wsdl

Once the proxy Java files are generated, compile the .java files into .class files. Be sure to include the complete set of Axis jar files on the compiler class path.

Note: CA Identity Manager includes web service samples for AXIS that contain a sample build script that that you can use as an example of how to generate and compile the Java proxy classes. See samples\WebService\AXIS\build.xml in the Administrative Tools. The Administrative Tools are placed in the following default locations: