Skip to main content


developerWorks  >  Open source | SOA and Web services  >

Use the Eclipse SOA Tools Platform plug-in to build and deploy a Web service

The Eclipse plug-in for easy Web services development

developerWorks

Level: Intermediate

Tyler Anderson (tyleranderson5@yahoo.com), Freelance Writer, Backstop Media

27 Mar 2007

Register now or sign in using your IBM ID and password.

Work on the Eclipse SOA Tools Platform (STP) plug-in is well under way, and we should expect lots of new features to aid Service-Oriented Architecture (SOA) deployment in the coming months. The Eclipse STP became the ninth top-level project for the Eclipse organization in 2005, and since then, development has come a long way. With the Eclipse STP plug-in, you can go from a Java™ interface, annotate it with Web service-related properties, create a Web Services Description Language (WSDL) for the Web service, generate and code Java stubs you can then compile into a WAR file, and deploy on your favorite Web server. This tutorial shows you how to accomplish all this using the Eclipse STP plug-in.

In this tutorial

This tutorial is for Service-Oriented Architecture (SOA) and Web services developers who want to learn to use the Eclipse SOA Tools Project (STP) plug-in and see for themselves how it can simplify their SOA development. It shows the advantages and simplicity of using the Eclipse STP plug-in to build a Web service. You will learn how to do the following with the STP plug-in:

  • Create a project

  • Develop a Java interface

  • Annotate the interface with Web services properties

  • Generate WSDL

  • Generate Java code from WSDL

  • Add implementation code to your Web service

  • Compile a WAR file of your Web service

  • Deploy and test the Web service

Prerequisites

See System requirements below.


System requirements

This tutorial relies on several Eclipse and Apache technologies for development with the STP plug-in:

Eclipse
Eclipse is the platform upon which the Eclipse SOA Tools plug-in runs. Download Eclipse V3.2 from the Eclipse Foundation.
Eclipse STP prerequisite plug-ins
Before you install the STP plug-in, you need to install several prerequisite plug-ins. The version numbers and links to download them are listed on the STP download page for the STP version you specify. At the time this was written, the latest stable build was 1 Feb 2007. You should already have Eclipse V3.2 installed. Prerequisite plug-ins: Eclipse EMF-SDO-XSD SDK, Eclipse GEF SDK, Eclipse JEM SDK, Eclipse WTP SDK, and Eclipse GMF Runtime.
Eclipse STP Core SDK
Now that you've got the prerequisite plug-ins, you can download the STP Core SDK plug-in, which you'll see under "SOA Tools Platform" on the STP download page.
Eclipse STP ServiceCreation
In addition to the STP Core SDK, you need to download the STP ServiceCreation plug-in, which you'll see under the link from which you downloaded the STP Core SDK.
Eclipse STP SOAS
In addition to the STP Core SDK, you need to download the STP SOAS plug-in, which you'll see under the link from which you downloaded the STP Core SDK and STP ServiceCreation.
Eclipse DTP SDK
You need to use the Eclipse DTP to aid deployment on Web servers other than the stand-alone Web server bundled inside Eclipse.
Eclipse Apache CXF plug-in
The STP plug-in uses Apache CXF its JAX-WS implementation, among other things.
Apache CXF Runtime
Once you've got everything installed, you need to tell Eclipse where to find the Apache CXF Runtime.
Apache Tomcat
You'll do a final test by deploying the Web service on Apache Tomcat. Download the latest Apache Tomcat V5.5.

You'll learn more about installation details before you begin coding later in the tutorial.



Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed