Newletter Sign Up
Posts on the
Design Decomposition Blog
Iridium Satellite Collision in Space
You might have seen the recent news reports about the collision between U.S. and Russian communication satellites. The U.S. satellite was one of the Iridium satellites. What wasn’t reported and you probably don’t know is that an object database management system (ODBMS) is an important part of the Iridium system. Even though ODBMSs are a [...]
February 13, 2009
(The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services
I am now also posting on the Cutter Blog. My initial posting is (The Acronym) SOA is (Perhaps) Dead (at Some Companies); Long Live Services. It is a response to Anne Thomas Manes’ SOA is Dead; Long Live Services on her blog at the Burton Group.
January 9, 2009
Atomicity
The typical definition of an atomic task or process is one that cannot be decomposed further. This is vague and subject to interpretation. The Decomposition Matrix on this site uses a specific definition: A task (for business process diagrams) or a process (for data flow diagrams) is atomic if every input relates to every output [...]
December 3, 2008
Well-Formed Business Process Diagrams
My last posting referenced the criteria for a well-formed business process diagram mentioned in Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. I am going to expand on their criteria to create a more comprehensive definition of a well-formed business process diagram. To start, here are three criteria from [...]
November 18, 2008
Recent Business Process Modeling Books
I recently received two new books on business process modeling. Both books looked interesting because they had great titles. As it turns out, one book is great and the other not so good. The not so good book is Business Process Driven SOA using BPMN and BPEL by Matjaz B. Juric and Kapil Pant. There are [...]
October 9, 2008
The Design Decomposition Blog
is written by Doug Barry.

First, defining Web Services using Web Services Description Language (WSDL) will be reviewed. That will be followed by SOAP, which provides means of sending messages.

>>
Also see Web Services definition and Service-oriented architecture (SOA) definition.

Using the Web Services Description Language (WSDL)

The Web Services Description Language (WSDL) forms the basis for Web Services. The following figure illustrates the use of WSDL. At the left is a service provider. At the right is a service consumer. The steps involved in providing and consuming a service are:

  1. A service provider describes its service using WSDL. This definition is published to a directory of services. The directory could use Universal Description, Discovery, and Integration (UDDI). Other forms of directories can also be used.
  2. A service consumer issues one or more queries to the directory to locate a service and determine how to communicate with that service. 
  3. Part of the WSDL provided by the service provider is passed to the service consumer. This tells the service consumer what the requests and responses are for the service provider.
  4. The service consumer uses the WSDL to send a request to the service provider.
  5. The service provider provides the expected response to the service consumer.

More on Web Services Description Language (new window).

Web Services basics

Using Universal Description, Discovery, and Integration (UDDI)

The directory shown in the above figure could be a UDDI registry. The UDDI registry is intended to eventually serve as a means of "discovering" Web Services described using WSDL . The idea is that the UDDI registry can be searched in various ways to obtain contact information and the Web Services available for various organizations. How much "discovery" will be used in the early days of Web Services is open to discussion. Nevertheless, even without the discovery portion, the UDDI registry is a way to keep up-to-date on the Web Services your organization currently uses. More on Universal Description, Discovery, and Integration (new window). An alternative to UDDI is the ebXML Registry (new window).

Using SOAP

All the messages shown in the above figure are sent using SOAP. (SOAP at one time stood for Simple Object Access Protocol. Now, the letters in the acronym have no particular meaning .) SOAP essentially provides the envelope for sending the Web Services messages. SOAP generally uses HTTP , but other means of connection may be used. HTTP is the familiar connection we all use for the Internet. In fact, it is the pervasiveness of HTTP connections that will help drive the adoption of Web Services. More on SOAP and Messaging (new window).

The next figure provides more detail on the messages sent using Web Services. At the left of the figure is a fragment of the WSDL sent to the directory. It shows a CustomerInfoRequest that requires the customer's account to object information. Also shown is the CustomerInfoResponse that provides a series of items on customer including name, phone, and address items.

Web Services messaging

At the right of this figure is a fragment of the WSDL being sent to the service consumer. This is the same fragment sent to the directory by the service provider. The service consumer uses this WSDL to create the service request shown above the arrow connecting the service consumer to the service provider. Upon receiving the request, the service provider returns a message using the format described in the original WSDL. That message appears at the bottom of the figure.

Using XML with WSDL

WSDL uses XML to define messages. XML has a tagged message format. This is shown in the above figure. The tag <city> has the value of Burnsville. And </city> is the ending tag indicating the end of the value of city. Both the service provider and service consumer use these tags. In fact, the service provider could send the data shown at the bottom of this figure in any order. The service consumer uses the tags and not the order of the data to get the data values. More on the use of XML tags and a comparison of XML to using fixed record formats can be found in chapter 3 of Web Services and Service-Oriented Architectures: The Savvy Manager's Guide.

Simplified Web Services notation

For other figures on this site, a simplified notation will be used for Web Services. This is shown below. In the simplified notation, the directory is implicit in the wide rectangle labeled "Web Services" at the top of this figure. You could think of Web Services much like the bus in a PC in which you plug various circuit boards. Other middleware solutions appear similar and use the same "bus" concept. See Prior Service-Oriented Architecture specifications (new window).

Another important concept in service-oriented architectures is that any service provider could also be a service consumer. This is why the figure below shows only services at the bottom of the figure under the Web Services bus rather than a "service provider" and a "service consumer". 

Simplified notation

Related content for: Web Services explained

More on the general topic: Web Services articles

Read more free articles on this site

There are nearly 400 pages of articles on this site with over 130 pages on Web services and service-oriented architecture.

Search this site for more articles

Custom Search

Browse this site for more articles

Click on the topics below to browse the articles on this site. You can see more detail by clicking on the arrows. This highlights the location of the current article: Web Services explained.

Related recent articles from Google News

New wave of startups building 'the local Web'
San Jose Mercury News
He's hoping that changes through a new revenue-sharing integration with BigTent, a San Francisco-based startup that provides Web services to hundreds of ...
and more »
20 Mar 2010 at 2:14pm
AT&T Feature Phones Get Smartphone-like Web Services
PC World
AT&T is gently pushing its Quick Messaging phone users towards pricier monthly plans with a set of new Web features, not all of them free. ...
AT&T plans to give more web services to cheaper phones USA Today
AT&T Rolling Out Cheap Phones With Web Services Mediapost.com
AT&T Feature Phones Gain Web Services Phones Review
all 124 news articles »
15 Mar 2010 at 9:43am
10 Top Web Services Offered By Google, Yahoo, And Microsoft
eWeek
Now that the first .com domain is officially 25 years old, it might be time to discuss some of our favorite Web services from companies like Google, Yahoo, ...
and more »
16 Mar 2010 at 1:53pm
Google may keep Chinese web services alive
Times Online
Some Google web services may survive, including its Chinese music search business and the popular Chinese version of its knowledge market site, ...
Google (GOOG) May Keep Its Operations In China Alive Benzinga
all 563 news articles »
17 Mar 2010 at 6:42pm
Cuba slams US easing of sanctions on Web services
AFP
HAVANA — A US decision to ease sanctions on Cuba and two other countries to allow exports of Internet services is intended to "destabilize" the communist ...
and more »
15 Mar 2010 at 8:45pm
More related news on: "Web services"

Related books at Amazon.com

RESTful Web Services Cookbook: Solutions for Improving Scalability and Simplicity
RESTful Web Services Cookbook: Solutions for Improving Scalability and Simplicity
by Subbu Allamaraju
Average Customer Review: 4 stars based on 1 review.
Customer Review: I have not made it through the whole book, but my first impressions are really good. One of the interfaces we were designing for work is to time consuming to wait for a http response, in the first chapter of this book it gives you the way to do Asynchronous requests correctly with rest. There is also some good information on presentin...
Restful Web Services
Restful Web Services
by Leonard Richardson, Sam Ruby, David Heinemeier Hansson
Average Customer Review: 4.5 stars based on 44 reviews.
Customer Review: RESTful Web Services is one of the best books I have recently read. Before starting reading I have attended a few presentations on REST and I naively thought I became quite familiar with it. Now I can see how ignorant I was about it... This book really helped me to deeply understand what REST is all about and why it is becoming so p...
Java Web Services: Up and Running
Java Web Services: Up and Running
by Martin Kalin
Average Customer Review: 4 stars based on 14 reviews.
Customer Review: I did learn a lot which is all that you can ask for. The book is thin - less than 300 pages, and the author writes in a good conversational style. It is a good tutorial but it probably does not make a good reference as it does not go into too much detail in some places. For example it does not explain how to create a handler when it...
Host Your Web Site On The Cloud: Amazon Web Services Made Easy: Amazon EC2 Made Easy
Host Your Web Site On The Cloud: Amazon Web Services Made Easy: Amazon EC2 Made Easy
by Jeff Barr
Publisher: SitePoint
Publication Date: February 2010
RESTful .NET: Build and Consume RESTful Web Services with .NET 3.5
RESTful .NET: Build and Consume RESTful Web Services with .NET 3.5
by Jon Flanders
Average Customer Review: 4.5 stars based on 9 reviews.
Customer Review: There are two things I really liked about Flanders' book: (1) It has a gradual progression from concept to implementation that is both easy to read and very structured. It made the whole book very valuable. The initial section on REST is concise and either enlightening or revision, depending on what you already know. The transition t...
More related books: Search Amazon.com for Web services