To make it possible to develop your application using a specific API, Java environments use Java objects that stand in for the API calls on the server. Therefore, if you are using Java, you will need to use the Zuora WSDL to generate these objects in your development environment.
This page describes how to do so manually for an Apache Axis environment. The instructions are given on the assumption that your Apache Axis environment has already been installed. Also, make sure all the Axis JAR files are in your classpath.
Apache Axis has an emitter (utility) called WSDL2Java. WSDL2Java builds stubs, data types, and skeletons from a WSDL using the following syntax (where the -a switch generates all code for all elements, even unreferenced ones):
java –classpath JARpath/filename org.apache.axis.wsdl.WSDL2Java -a WSDLpath/WSDLfilename
This command generates folders and Java source code files in the same directory that you have run the command from. After compiling these files, you can include them in your Java programs for use in creating client applications.
If your JAR files are in two or more locations, separate the file names with a semicolon. For example, if the Axis JAR files are installed in C:\axis\, and the WSDL(zuora.2.0.wsdl) is stored in C:\mywsdls\, the command might look something like this:
java –classpath c:\axis\lib\axis.jar;c:\axis\lib\axi-ant.jar;c:\axis\lib\axis-schema.jar;c:\axis\lib\commons-discovery-0.2.jar;c:\axis\lib\commons-logging-1.0.4.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis\lib\saaj.jar;c:\axis\lib\wsdl4j-1.5.2.jar; org.apache.axis.wsdl.WSDL2Java -a C:\myswdls\zuora.2.0.wsdl
For more information on WSDL2Java, see http://ws.apache.org/axis/java/user-guide.html#UsingWSDLWithAxis and http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference.
Copyright © 2008-2009 Zuora, Inc.