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]

Build SOA with Web services using WebSphere Studio, Part 2: Create a Web service from a Java class

Warner Onstine (webserv@us.ibm.com), Senior Mentor, ArcMind
Warner Onstine, Senior Mentor at ArcMind, Inc., is a developer with more than 8 years of experience in the industry, the majority of that spent developing Web applications. Warner is co-author of the book Professional Java Tools for Extreme Programming, with chapters focusing on Maven, Swing unit testing, and code coverage using jcoverage.
Rick Hightower (webserv@us.ibm.com), Chief Mentor, ArcMind
Rick Hightower, Chief Mentor at ArcMind, Inc., is a developer with multiple achievements, industry awards, and certifications. Rick is co-author of the book Professional Jakarta Struts, Java Tools to Extreme Programming, and wrote 1/5 of the book, Mastering Tomcat. Rick wrote many well-received tutorials on EJB 2.0 CMP CMR, XDoclet, Apache Axis, ETTK, WSDK, Struts Tiles, and more for IBM developerWorks.

Summary:  Learn how to create a Web service that provides a DVD rental service and a client for that service. This tutorial shows you how to create a Web service from a Java class using WebSphere® Studio Application Developer Integration Edition. The next two tutorials cover two DVD rental services and a rental service search aggregator service. (See all parts of this tutorial series.)

View more content in this series

Date:  11 Nov 2004
Level:  Intermediate PDF:  A4 and Letter (76 KB | 21 pages)Get Adobe® Reader®

Activity:  1812 views
Comments:  

About this tutorial

Purpose of this tutorial

Learn how to create a Web service that provides a DVD rental service and a client for that service. The next two tutorials will cover some additional services as outlined below:

  • Two DVD rental services
  • A rental service search aggregator service

The two DVD rental services have slightly different interfaces to show you how the search aggregator can search two (slightly) disparate sources. Initially we only focus on the client side of the Web service, which will access the aggregator that searches for and sends rental recommendations. The next 2 tutorials will cover the aggregator and DVD Rental provider's interfaces more in depth.


What you need to know for this tutorial

This tutorial assumes you have a working knowledge of Java programming and XML. Knowledge of J2EE technology is helpful but not required. All of the example applictions will be deployed on the IBM WebSphere® Application Server (Application Server) that ships as part of WebSphere Studio Application Developer Integration Edition (Application Developer -- see Resources for link to a trial version).


What this tutorial covers

This tutorial explores the world of Web services and Service-Oriented Architecture. The following topics, tools, and techniques will be covered:

Topics

  • Introduction to SOA
  • Introduction to creating Web services from Java classes using Application Developer
  • Introduction to Web services tools

Tools

  • Application Developer Web services wizard
  • Application Developer Web services exploration

Techniques

  • Create Web services from Java classes
  • Deploy that model as a Web service
  • Create services that interact with each other

About the labs in this series

All of these tutorials focus on a DVD rental search engine that aggregates search results from one or more DVD rental shops that have made their catalogs available online. The use case we address, Rental Recommendation , involves allowing users to submit the movie category they would like to rent and, based on their rental history, using Web services to suggest other movies. In the first tutorial ("Build SOA with Web services using WebSphere Studio, Part 1: Introduction to SOA and Web services," see Resources), we simply created a simple Web service and ran it. In this secod tutorial, you can expand your exploration of working with Web services with three labs:

  • Lab 1: Build and deploy a Web service -- In this lab you create and deploy a simple Web service that your aggregator will expose for the client.
  • Lab 2: Exchange complex SOAP objects -- In this lab you can enhance your Web service by allowing it to return more complex SOAP objects for your rental client to use.
  • Lab 3: Dynamic Web service client -- In this lab you can dynamically create a Web service client for consuming the complex SOAP objects.

Tools you need for this tutorial

At a minimum you need a Java SDK 1.3.1 or higher in order to run Application Developer. The IBM developerWorks site has a trial version WebSphere Application Developer Integration Edition and other information.

1 of 9 | 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=SOA and Web services
ArticleID=107532
TutorialTitle=Build SOA with Web services using WebSphere Studio, Part 2: Create a Web service from a Java class
publish-date=11112004
author1-email=webserv@us.ibm.com
author1-email-cc=
author2-email=webserv@us.ibm.com
author2-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.