Java Server-Side Programming

Web Services

Develop and Deploy Web Services in Tomcat 6

We shall develop web services in JDK and deploy in Tomcat first, and using IDE tools such as Eclipse and NetBeans later.

Server-Side

Step 1: Implement the Web Service

Let us begin by writing a web service, using JAX-WS (Java API for XML - Web Services) provided in JDK 1.6. JAX-WS is the technology for building web services in Java.

Step 2: Download and install JAX-WS Runtime for Tomcat

Step 3: Deploy the Web Service in Tomcat

Client-Side

Now, a web service has been published. Let us write a client program (in Java) to access this web service.

 

REFERENCES & RESOURCES

Latest version tested: JDK 1.6, Tomcat 6.0.20, JAX-WS 2.1.7
Last modified: September 6, 2009