Java Reference
In-Depth Information
methods that you can inspect to get the information you want. In your case, this service re-
turns much more data than we're showing for this example.
Compiling the client
To compile the client, use the following command:
$ javac -cp gen WeatherClient.java
Running the client
On Linux, run the client using the following command:
$ java -cp gen:. WeatherClient
On Windows systems, you need to use the ; character to separate paths, so replace the preced-
ing with:
gen;
This will produce a result such as the following:
Invoking...
Place=SCOTTSDALE
Day=Tuesday, July 29, 2008
High Temp (F)=94
All done.
You can follow these same basic steps to invoke any web service using JAX-WS.
Search WWH ::




Custom Search