Contents
Overview 1
Service-Oriented Architecture 2
Web Service Architectures and Service-
Oriented Architecture 5
Roles in a Web Service Architecture 9
The Web Services Programming Model 18
Review 21
Module 2: Web Service
Architectures
Information in this document, including URL and other Internet Web site references, is subject to
change without notice. Unless otherwise noted, the example companies, organizations, products,
domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious,
and no association with any real company, organization, product, domain name, e-mail address,
logo, person, places or events is intended or should be inferred. Complying with all applicable
copyright laws is the responsibility of the user. Without limiting the rights under copyright, no
part of this document may be reproduced, stored in or introduced into a retrieval system, or
transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Describe the Web Service programming model.
Materials and Preparation
This section provides the materials and preparation tasks that you need to teach
this module.
Required Materials
To teach this module, you need the Microsoft
®
PowerPoint
®
file 2524A_02.ppt.
Preparation Tasks
To prepare for this module:
!
Read all of the materials for this module.
!
Try out the demonstration.
Presentation:
60 Minutes
Lab:
00 Minutes
iv Module 2: Web Service Architectures Demonstration
This section provides demonstration procedures that will not fit in the margin
notes or are not appropriate for the student notes.
An Electronic Funds Transfer Web Service Solution
Woodgrove Web Service.
2. In the acctID box, type the account number using the value of the
AccountID field for the From account in NorthwindClient.exe.
3. Click Invoke.
An XML document that contains the results of the method call is displayed.
4. Point out the value in the balance element in the XML document.
5. Click the Transfer button in the client application, NorthwindClient.exe.
6. Click the Refresh button on the browser window that displays the XML
document.
7. Point out that the balance has been reduced by $100.
Module 2: Web Service Architectures v Module Strategy
Use the following strategy to present this module:
!
Service-Oriented Architecture
Explain what a service-oriented architecture is. This topic is intended to
provide the students with a conceptual framework to be able to understand
the architecture of Web Service based solutions.
!
Web Service Architectures and Service-Oriented Architecture
Explain the relationship between the conceptual service-oriented
architecture and Web Services architectures. Use the demonstration of the
final solution as a means to show each of the Web Service architectural
elements as concrete implementations.
!
Roles in a Web Service Architecture
This topic examines the specific roles in Web Service architecture and
******************************
In this module, you will begin by looking at service-oriented architecture as a
conceptual architecture for distributed applications. Next, you will examine
how solution architectures based on Web Services are a type of service-oriented
architecture. Then, you will examine each of the roles in a Web Service
architecture. Finally, you will look at the kind of programming model imposed
by a Web Service architecture.
After completing this module, you will be able to:
!
Identify how Web Service architectures are a type of service-oriented
architecture.
!
Describe the elements of a Web Service architecture and explain their roles.
!
Describe the Web Service programming model.
Topic Objective
To provide an overview of
the module topics and
objectives.
Lead-in
In this module, you will learn
about the architecture of a
Web Services-based
solution.
2 Module 2: Web Service Architectures Service-Oriented Architecture
Service
!
The service interfaces of software resources must be published for public
use, and the interface definitions and documentation must be publicly
accessible.
Building applications that meet the preceding requirements can result in the
following advantages:
!
Applications can be constructed by integrating core business processes with
outsourced software services and resources.
!
Many more granular software resources can be created.
!
Reusable third-party software resources can provide cost and productivity
benefits.
!
The sale of software as service can become widespread. For example, a
company could sell a shared calendar service as a Web accessible service
instead of selling a stand-alone calendaring application.
Topic Objective
To describe service-oriented
architecture and explain
how distributed applications
can be modeled using this
architecture.
Lead-in
To build flexible, robust
distributed applications,
there are a number of
A service broker is a node on the network that is a repository of service
descriptions and acts like a yellow pages service. Service consumers can
interrogate a service broker in order to locate a required service provider and
service. Service brokers will often also act as service providers in cases where
the service that is provided is service brokering.
4 Module 2: Web Service Architectures The preceding three service-oriented architecture roles interact to perform three
basic operations:
!
Publish services
Service providers publish their services to a service broker. The information
published includes the service interface definition, location of service
providers, and possibly other supporting information or documentation.
!
Find services
Service consumers find required/desired services by using a service broker.
!
Bind to services
Service consumers bind to specific services provided by a service provider.
The binding process includes authentication of consumers.
Both finding and binding to services can be done dynamically to allow
applications to configure themselves dynamically. For example, if an
application finds that the response time from a service provider has become
unacceptable, then it might decide to switch to another service provider at run
time.
Module 2: Web Service Architectures 5
To introduce the topics in
this section.
Lead-in
Before delving into the
details of implementing and
using Web Services, it is
important to understand how
a Web Service architecture
is a type of service-oriented
architecture.