Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 2: Basic Standards for Web Services Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.

Similar presentations


Presentation on theme: "Chapter 2: Basic Standards for Web Services Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005."— Presentation transcript:

1 Chapter 2: Basic Standards for Web Services Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005

2 Chapter 22Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Highlights of this Chapter eXtensible Markup Language (XML) Simple Object Access Protocol (SOAP) Web Services Description Language (WSDL) Directory Services Universal Description, Discovery, and Integration (UDDI)

3 Chapter 23Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Standards for Web Services

4 Chapter 24Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns XML Web Service Foundation Open and with broad industry support Publish, Find, Use Services UDDI Service Interactions SOAP Universal Data Format XML Description Language WSDL Ubiquitous Communications TCP/IP, HTTP, SMTP, SIP, Reliable messaging Security (authentication and authorization) WS-Security, SAML

5 Chapter 25Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Markup History None, as in comma separated values Ad hoc tags SGML (Standard Generalized Markup L): complex, few reliable tools HTML (HyperText ML): simple, unprincipled, mixes structure and display XML (eXtensible ML): simple, yet extensible subset of SGML to capture new vocabularies Machine processible Comprehensible to people: easier debugging

6 Chapter 26Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns XML Basics and Namespaces <!– not part of the document per se  <arbitrary:toptag xmlns=“http://one.default.namespace/if-needed” xmlns:arbitrary=“http://wherever.it.might.be/arbit-ns” xmlns:random=“http://another.one/random-ns”> Optional text also known as PCDATA <!– compare with arbitrary:atag above 

7 Chapter 27Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns XML Schema A data definition language for XML: defines a notion of schema validity; helps us define desired grammars for documents Same syntax as regular XML documents Local scoping of subelement names Incorporates namespaces Types Primitive (built-in): string, ID, IDREF, integer, float, date, simpleType constructors: list, union Restrictions: intervals, lengths, enumerations, regex patterns, Flexible ordering of elements Key and referential integrity constraints

8 Chapter 28Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Web Services: Basic Architecture Service Broker Service Provider Service Requestor Bind or invoke (SOAP) Find or discover (UDDI) Publish or announce (WSDL) Registry; well-known Not well-known

9 Chapter 29Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Basic Profile (BP 1.0) The Web Services Interoperability Organization (WS-I) has specified the following Basic Profile version 1.0: SOAP 1.1 HTTP 1.1 XML 1.0 XML Schema Parts 1 and 2 UDDI Version 2 WSDL 1.1

10 Chapter 210Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Describing a Service Name e.g., GetTemperature Types of Input Parameters e.g., (String, String) Types of Output Parameters e.g., Integer

11 Chapter 211Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Interactions Via Methods Via Messages Purchasing() CatalogService() Order() invoke invoke catalog confirmation #

12 Chapter 212Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns SOAP (Simple Object Access Protocol) Used to exchange messages via HTTP, SMTP, and SIP (Session Initiation Protocol for Internet telephony) Originally designed for remote-procedure calls (RPC) Works through firewalls on port 80 Character-based, so easy to encrypt/decrypt and thus easy to secure Inefficient due to character, not binary, data and large headers Does not describe bidirectional or n-party interaction

13 Chapter 213Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Ex. SOAP Request POST /temp HTTP/1.1 Host: www.socweather.com Content-Type: text/xml; charset="utf-8" Content-Length: xxx SOAPAction: "http://www.socweather.com/temp" <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> Honolulu now

14 Chapter 214Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Ex. SOAP Response HTTP/1.1 200 OK Content-Type: text/xml; charset="utf-8" Content-Length: xxx SOAPAction: "http://www.socweather.com/temp" <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 30

15 Chapter 215Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL: Web Services Description Language Describes a programmatic interface to a Web service, including Definitions of data types Input and output message formats The operations provided by the service Network addresses Protocol bindings

16 Chapter 216Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Data Model

17 Chapter 217Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 1 <wsdl:definitions name="Temperature" targetNamespace="http://www.socweather.com/schema" xmlns:ts="http://www.socweather.com/TempSvc.wsdl" xmlns:tsxsd="http://schemas.socweather.com/TempSvc.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

18 Chapter 218Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 2 <xsd:schema targetNamespace="http://namespaces.socweather.com" xmlns:xsd="http://www.w3.org/1999/XMLSchema">

19 Chapter 219Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 3

20 Chapter 220Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 4

21 Chapter 221Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 5

22 Chapter 222Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL Example: 6 socweather.com temperature service

23 Chapter 223Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Directory Services Support discovery: enable applications, agents, Web service providers, Web service requestors, people, objects, and procedures to locate each other White pages – entries found by name Yellow pages – entries found by characteristics and capabilities A basic directory might be a simple database (passive) or a broker/facilitator (active, that provides alerts and recruits participants) UDDI – both white pages and yellow pages, but passive

24 Chapter 224Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns UDDI: Universal Description, Discovery, and Integration UDDI is a Web service that is based on SOAP and XML UDDI registers 1. tModels: technical descriptions of a service’s behavior 2. businessEntities: describes the specifications of multiple tModels

25 Chapter 225Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Yellow, Green, and White Pages in UDDI

26 Chapter 226Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns UML Model for Business Entity in a UDDI Registry

27 Chapter 227Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Core Data Structures for UDDI

28 Chapter 228Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns WSDL  UDDI Correspondence

29 Chapter 229Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns An Inquiry to a UDDI Registry A UDDI registry acts as a service in its own right uddi:uddi.org:findqualifier:exactmatch <!--find information about all businesses with the exact name "WeatherService Inc." --> WeatherService Inc.

30 Chapter 230Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Response from a UDDI Registry WeatherService, Inc. <serviceInfo serviceKey="...KN..." businessKey="...K1..."> Temperature Service

31 Chapter 231Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns Chapter 2 Summary The main triad of Web services standards Bring together well-known ideas Provide necessary functionality for interoperation Are complicated in their details Meant for tool vendors rather than programmers Increasingly hidden by tools


Download ppt "Chapter 2: Basic Standards for Web Services Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005."

Similar presentations


Ads by Google