Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

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

The Eclipse plug-in for easy Web services development

Tyler Anderson, Freelance Writer, Backstop Media
Tyler Anderson received his bachelor's degree in computer science in 2004 and his master's degree in electrical and computer engineering in 2005 from Brigham Young University. He worked with Stexar Corp. as a design engineer from May 2005 to August 2006. He was discovered by Backstop Media LLC in early 2005, and has written and coded numerous articles and tutorials for IBM developerWorks.

Summary:  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.

Date:  27 Mar 2007
Level:  Intermediate PDF:  A4 and Letter (780 KB | 34 pages)Get Adobe® Reader®

Activity:  26563 views
Comments:  

Before you start

What is SOA? SOA is defined as "an IT architectural style that supports the transformation of a business into a set of linked services, or repeatable business tasks, that can be accessed when needed over a network."

Why use Eclipse STP? Its aim is "to build frameworks and exemplary extensible tools that enable the design, configuration, assembly, deployment, monitoring, and management of software designed around a SOA."

About 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.

This tutorial 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

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 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 at Eclipse.org for the STP version you specify. At the time this was written, the latest stable build was 1 Feb 2007. The plug-ins you need to install and download and install are shown under "Requirements." You should already have Eclipse V3.2 installed. Prerequisite plug-ins:
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.

1 of 13 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, SOA and Web services
ArticleID=203494
TutorialTitle=Use the Eclipse SOA Tools Platform plug-in to build and deploy a Web service
publish-date=03272007
author1-email=tyleranderson5@yahoo.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.