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]

Consuming Web services

Use Rational Application Developer to create and consume Web services

Kunal Mittal (kunal@kunalmittal.com), Portal/J2EE Architect, Freelance Developer
Kunal Mittal is a consultant specializing in Java™, Java 2 Platform, Enterprise Edition (J2EE), and Web services technologies. He is the co-author of and has contributed to several books on these topics. Kunal is currently working on a portal project for Sony Pictures Entertainment. For more information, visit his Web site at http://www.soaconsultant.com.

Summary:  This tutorial explains the basic elements of a Web service and shows how you can use IBM Rational Application Developer to build, consume, deploy, and test Web services. You also learn how to consume an external Web service taken from the xmethods.net site.

Date:  13 Apr 2005
Level:  Introductory PDF:  A4 and Letter (2244 KB | 43 pages)Get Adobe® Reader®

Activity:  11179 views
Comments:  

Before you start

Learn what to expect from this tutorial, and how to get the most out of it.

About this tutorial

Web services provide a way for applications to easily communicate using common protocols, which allows for collaboration both across platforms and across time zones. To a developer who hasn't used Web services before, however, just understanding all the acronyms can be a challenge. Messages can be exchanged using text-based XML, so any system can read them; protocols such as the Simple Object Access Protocol (SOAP) can define their content so that systems recognize what they're looking at. You can describe entire messaging systems using a Web Services Definition Language (WSDL) file and publish information about the service in a Universal Description, Discovery, and Integration (UDDI) directory for companies to find.

Fortunately, using Web services doesn't require learning about all of the different technologies -- if you have the right tools. IBM® Rational® Application Developer Version 6.0 (or IBM Rational Web Developer Version 6.0) enables you to create and use Web services without knowing anything about XML, SOAP, or any of the other acronyms involved.

In this tutorial, you will:

  • Learn how different technologies interact to make Web services work
  • Wrap a simple inventory-control application as a Web service
  • Test the Web service
  • Browse the code for the Web services consumer
  • Build a Web services client for an external Web service
  • Test the external Web service
  • Build a WSDL file
  • Convert a WSDL file into a Web service

System requirements

To run the examples in this tutorial, you need the following software:

  • Rational Application Developer Version 6.0 (download the latest trial version) or Rational Web Developer Version 6.0 (download the latest trial version).
  • Apache Tomcat Version 5.0. You can use Apache Tomcat Version 5.0 or later.
  • Sample files. To start you off, this tutorial includes a simple Java™ class, which you can download.

See Resources for related tutorials if you need to get a jump start. Familiarity with Java technology is also strongly recommended.

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=Rational
ArticleID=151091
TutorialTitle=Consuming Web services
publish-date=04132005
author1-email=kunal@kunalmittal.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).

Special offers