Previous Topic: Manual Deployment


Using the Generated Sample Client

Edit and compile the generated sample client before executing the sample client. At the very least, the data that is set in the main method at the bottom of the file for each of the input parameters should be examined and modified as necessary. In particular, any parameters that are of type date, time, or timestamp must be modified as the sample calls to the set methods use text that indicates how these fields may be formatted.

After the file has been edited, it may be compiled using the following statement in a command prompt.

javac -classpath <path to saaj.jar> <serviceName>Client.java

where <path to saaj.jar> is:

For example:

c:\java\xml-axis-10\lib\saaj.jar

and <serviceName>Client.java is:

For example:

MyFirstServiceClient.java

Note: The command is case-sensitive.

The client may be run from a command prompt with the following command:

Java -cp %ClientClassPath% <serviceName>Client

where %ClientClassPath% might be an environment variable that includes the current directory (.) as well as the following jar files that may be found in your Axis lib directory, except as indicated:

The client might also be used in a CA Gen external action block (EAB) by removing the main code from the client and putting it into the EAB.