Before you start
This tutorial series demonstrates how to create a stand-alone Web services server and client application that you can easily run from the command line with Java SE 6 rather than from within web application server containers. Using a simple Hello World example, you will leverage the Eclipse IDE, Java SE 6, and Apache Ant to easily create fully functioning Web services server and client applications. You will also use the TCP/IP Monitor to examine the communication traffic between the server and client, and use the Eclipse Web Services Explorer tool to test the Web Service.
This tutorial, Part 2 of the series, describes the creation of a stand-alone Web service client application to communicate with the stand-alone Web service you developed and deployed in Part 1. You will be taken step-by-step through the development and deployment of the Web service client application using the Eclipse IDE, Java SE 6 and Ant.
After completing this tutorial you should know:
- How to create the client side of a Web service, using the Eclipse IDE to generate and compile the code using Java SE 6.
- How to use the Ant Java-based build tool within the Eclipse IDE to run a special Java command to generate some of the code from the WSDL published in Part 1 of the series.
- How to use the TCP/IP Monitor within the Eclipse IDE to observe, capture and validate the Web service's SOAP traffic between the server and client.
- How to run the server and client applications directly from the command line outside of the Eclipse IDE.
This tutorial includes simple steps written for beginning- to intermediate-level Java programmers with some working knowledge of the Java language and Ant builds. Novice to more advanced Java developers will gain some knowledge of how to build, deploy, and run stand-alone Web services servers and distributed clients to provide firewall-friendly remote communications and applications processing.
To follow the examples, you need to download:
You don't have to download Ant, as its functionality is bundled with Eclipse. This tutorial uses the Ganymede Package for the Eclipse IDE for Java EE Developers.