Skip to main content

skip to main content

developerWorks  >  SOA and Web services | Java technology  >

Create stand-alone Web services applications with Eclipse and Java SE 6: Part 2: The Web service client application

developerWorks
Page 1 of 11 Go to the next page

Document options
PDF format - Fits A4 and Letter

PDF - Fits A4 and Letter
494 KB (27 pages)

Get Adobe® Reader®


My developerWorks needs you!

Connect to your technical community


Rate this tutorial

Help us improve this content


Level: Intermediate

John Robertson (jtrobert@au1.ibm.com), Staff Software Engineer, IBM
Fiona Lam (fionalam@au1.ibm.com), Software Engineer, IBM
Yaqian Fang (yaqfang@au1.ibm.com), Software Engineer, IBM
Angela Baird (angbaird@au1.ibm.com), Angela Baird, IBM
Elena Nossova, Analyst/Programmer, Independent

18 Sep 2009

Use the Eclipse Integrated Development Environment (IDE) and Java Platform, Standard Edition (Java SE) 6 to create a stand-alone Web services application that can be run from the console. In this tutorial, the second in the series, continue getting familiar with the Eclipse IDE and its built-in feature the TCP/IP Monitor. View the network traffic between server and client applications and then run the applications from the command line.

Before you start

About this series

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.



Back to top


About this tutorial

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.



Back to top


Objectives

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.


Back to top


Prerequisites

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.



Back to top


System requirements

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.



Back to top



Page 1 of 11 Go to the next page