web services based on soa: concepts, technology, design by thomas erl mis 181.9: service oriented...

33
Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Upload: shonda-lizbeth-mitchell

Post on 02-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Services Based on

SOA: Concepts, Technology, Designby Thomas Erl

MIS 181.9: Service Oriented Architecture

2nd Semester, 2011-2012

Page 2: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Services

►web-based applications that use open, XML-based standards and transport protocols to exchange data with clients

Page 3: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

What are web services?

► Web services are application components► Web services communicate using open protocols► Web services are self-contained and self-

describing► Web services can be discovered using UDDI► Web services can be used by other applications► XML is the basis for Web services

Page 4: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

How does it work?

►The basic Web services platform is XML + HTTP.► XML provides a language which can be used

between different platforms and programming languages and still express complex messages and functions.

► The HTTP protocol is the most used Internet protocol.

Page 5: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web services model

Web Service Provider

Web Service Registry

Web Service Client

publish

bind/invoke

find

Page 6: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Services

►Technology Framework► Includes one or more of the following:

►Architectures►Technologies►Concepts►Models►Sub-frameworks

Page 7: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Services Framework

►Characterized by►Web services, service descriptions,

messages►Communications agreement (service

description) based on WSDL►Messaging framework using SOAP►Service description registration and

discovery architecture using UDDI

Page 8: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web services platform elements

►SOAP (Simple Object Access Protocol)►UDDI (Universal Description, Discovery

and Integration)►WSDL (Web Services Description

Language)

Page 9: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web services platform elements

UDDI

WSDL

SOAP

XML

Service Discovery and Publication

Service Description

XML based messaging

Data level description

Page 10: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Why use web services?

►Interoperability has Highest Priority►Web Services take Web-applications to

the Next Level►Web Services have Two Types of Uses

► Reusable application-components.► Connect existing software.

Page 11: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

What is SOAP?

►stands for Simple Object Access Protocol ►an XML-based protocol to let applications

exchange information over HTTP►a protocol for accessing a Web Service

Page 12: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

What is SOAP?

► a communication protocol► a format for sending messages► designed to communicate via Internet ► platform independent► language independent► based on XML► simple and extensible► SOAP allows you to get around firewalls► SOAP is a W3C standard

Page 13: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

What is WSDL?

►an XML-based language for locating and describing Web services

► stands for Web Services Description Language► based on XML► used to describe Web services► used to locate Web services► a W3C standard

Page 14: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

What is UDDI?

►a directory service where companies can register and search for Web services

► stands for Universal Description, Discovery and Integration

► a directory for storing information about web services► a directory of web service interfaces described by WSDL► communicates via SOAP► built into the Microsoft .NET platform

Page 15: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Services Design Concepts

►Web service can have two classifications►Temporary based on roles assumed

during runtime►Permanent based on application

logic it provides

Page 16: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Web Service Roles

►Web service can assume different roles depending on context of usage►Message Initiator►Message Relayer►Message Recipient

►Agnostic services

Page 17: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service Roles► Service Provider

► Recipient of the request message

► Service Requestor► Any unit of processing logic capable of issuing a

request message► Searches for provider by reviewing Service

Descriptions

► Web Service is always a provider but can also be a requestor

Page 18: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012
Page 19: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Other roles

►Intermediaries►Service composition member

Page 20: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Intermediaries

► Web services communications is based on use of messaging paths► Vs. point-to-point communication► message sent by a requester can be processed

by multiple intermediate routing and processing agents before received by ultimate destination

► Intermediaries: web services that route and process a message► After initially sent► Before target destination

Page 21: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service Composition Member

►Any service can enlist one or more additional services to complete a given task

►Any of the enlisted services can call other services to complete a given sub-task

Page 22: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service Models

►Application logic classification►Business-related roles within a

solution

►Business service model►Utility service model►Controller service model

Page 23: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Business Service Model

►Most fundamental building block within SOA

►Encapsulates distinct set of business logic

Page 24: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Utility Service Model

►Any generic service designed for potential reuse

►Used in SOA as:► Services that are reused► Solution-agnostic intermediary services► Services with highest degree of

autonomy►Most commonly associated with the

application service layer

Page 25: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Controller Service Model

►Assembles and coordinates service compositions

►Used in SOA►To support and implement principle

of composability►To leverage reuse opportunities

►There can be master controller and sub-controller services

Page 26: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service Descriptions

►WSDL used to define service descriptions

►Required to accompany any web service

►Service requestor uses WSDL of a service provider to ensure that messages sent is understood and accepted

Page 27: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service endpoints

►WSDL describes the point of contact for a service provider

►Provides definition of endpoint interface►So requestor can know how to

structure request message►Establishes the physical location

(address) of the service

Page 28: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

WSDL Definition

► Abstract Definition► Interface characteristics► Technology

Independent► portType/interface► operation

► Represents a specific action performed by a service

► Similar to public method

► message

Page 29: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

WSDL Definition

►Concrete Description► Binding

►Technology transport►E.g. SOAP

► Port/endpoint►Physical address

Page 30: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

SOAP

► Header► Meta information on how data

will be delivered and processed► Allows SOAP messages to be

independent► Sample instructions

► Processing► Routing/workflow► Security

► Body► XML formatted data

Page 31: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012
Page 32: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

Service Description Advertisement and Discovery

►UDDI► One standard for structuring registries that

keep track of service descriptions► Registries can be searched manually or

automatically thru an API►Public Registries

► Accept registration from any organizations►Private Registries

► Can be implemented within an organization

Page 33: Web Services Based on SOA: Concepts, Technology, Design by Thomas Erl MIS 181.9: Service Oriented Architecture 2 nd Semester, 2011-2012

UDDI Registry Records Components

►Business entities►For public registry records►Profile of business entity►Services offered by the entity

►Binding information►Can be an address of a web site►Can be a pointer to actual service

descriptions