| 1 |
To run the address book sample, you must do the following: |
| 2 |
1. Set up your CLASSPATH. |
| 3 |
2. Generate the Java bindings from the AddressBook.wsdl file. |
| 4 |
3. Compile the code. |
| 5 |
4. Start a server. |
| 6 |
5. Run the sample. |
| 7 |
|
| 8 |
1. Set up your CLASSPATH. |
| 9 |
The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit |
| 10 |
(www.junit.org), all the jars in the lib directory, and the directory |
| 11 |
containing the samples subdirectory. |
| 12 |
|
| 13 |
2. Generate the Java bindings from the AddressBook.wsdl file. |
| 14 |
a. Change directory to the directory that contains the samples |
| 15 |
subdirectory. |
| 16 |
b. Run the command: java org.apache.axis.wsdl.WSDL2Java -s -d Session |
| 17 |
-Nurn:AddressFetcher2=samples.addr samples\addr\AddressBook.wsdl |
| 18 |
|
| 19 |
This will generate all the bindings, both client-side and server-side, |
| 20 |
into the samples/addr subdirectory. |
| 21 |
|
| 22 |
3. Compile the code. |
| 23 |
a. Now you can change directory to samples/addr |
| 24 |
b. And compile the sample: javac *.java |
| 25 |
|
| 26 |
4. Start a server. |
| 27 |
To run the sample, you will first need to run a server. To run a very |
| 28 |
simple server you could run, in a separate window: |
| 29 |
java org.apache.axis.transport.http.SimpleAxisServer -p 8080 |
| 30 |
|
| 31 |
5. Run the sample. |
| 32 |
Finally, to run the client, run testit.sh or testit.cmd, depending on |
| 33 |
your platform. |