Java Environments

The RPM Web Services currently supports the Java API from the WSDL2Java utility.

Java environments access the RPM Web Services API through Java objects that serve as proxies for the server-side counterparts. Before using the RPM Web Services API, the objects must first be generated from the WSDL files.

Before running WSDL2Java, the Apache Axis must be installed on your system and all of its component JAR files must be referenced in your classpath. With MS-DOS command line, the classpath variable can be viewed using the following command line:

echo %classpath%;

Axis

Generating the API using Apache Axis WSDL2Java:

  1. Download the Apache Axis tool kit from Download the Apache Axis tool kit from http://www.apache.org/dyn/closer.cgi/ws/axis/1_3_0.
  2. Extract the ZIP file on to your hard drive.
  3. Add the JAR files to you classpath.
  4. Open a command prompt window.
  5. Go to your \wsdl folder.
  6. Execute the following command: java org.apache.axis.wsdl.WSDL2Java yourwsdlfilename.wsdl. This will generate a set of folders and Java source code files in the same directory in which it was run.
  7. Cut and paste the folder and its content into your Java workspace.

In the previous procedure, "yourwsdlfilename.wsdl" can be one of the following.

RPC/Encoded Document/Literal
Authenticate.wsdl AuthenticateLiteral.wsdl
Application.wsdl ApplicationLiteral.wsdl

You can now start using the API and begin development.