Professional Documents
Culture Documents
Web Services Technologies: XML and Soap WSDL and Uddi
Web Services Technologies: XML and Soap WSDL and Uddi
Version 16
WSTech-2
WSTech-3
WSTech-4
UDDI Registry
1) Register
SOAP server
2) Inquire
SOAP
messages
(XML)
WS/SOAP client
Local
Data Model
Integrated
Application
Or domain
Local
Transforms
3) Get
WSDL
Service
Description
(WSDL)
SOAP server
4) Request/
Response
XML
mapping
Local
Data Model
Integrated
Application
Or domain
Local
Transforms
WSTech-5
SOAP
Simple Object Access Protocol
A simple way to send documents (some people have called it email
for documents)
WSDL
Web Services Description Language
Defines all details about a service
UDDI
Universal Description, Discovery and Integration
One way to advertise and discover services
WSTech-6
XML documents
within
SOAP messages
defined by
WSDL
discovered via
UDDI
WSTech-7
XML Technologies
Collection of extensible information
representation and manipulation technologies
XML itself the base document standard
XML Schema for data typing and document
structuring
XSLT for transforming XML to other XML or other
formats
Parsing strategies for XML document processing
DOM Document Object Model
SAX Simple API for XML
Others: XPATH, XQUERY, etc.
WSTech-8
XML Technologies
Reference: http://www.w3.org/XML/
SGML : Structured Generalized Markup Language
W3C : World Wide Web Consortium
WSTech-9
XML Technologies
<MyElement> . </MyElement>
WSTech-10
XML Technologies
<getQuoteResponse>
<Result>56.5</Result>
</getQuoteResponse>
Four elements:
getQuote
symbol
getQuoteResponse
Return
Two contain
other elements.
Two contain
simple text content.
WSTech-11
XML Technologies
Date attribute
<getQuote date=02-01-2004>
<symbol>FORD</symbol>
</getQuote>
WSTech-12
XML Technologies
symbol=FORD
date=02-01-2004>
</getQuote>
WSTech-13
XML Technologies
XML Namespaces
Used to avoid element and attribute name clashes when
creating complex XML documents
Attributes of the form xmlns:prefix=identifier are
used to introduce a namespace and establish the prefix
Subsequently, names within the namespace must be written as
prefix:name
WSTech-14
XML Technologies
WSTech-15
XML Technologies
WSTech-16
XML Technologies
WSTech-17
XML Technologies
WSTech-18
XML Technologies
...
WSTech-19
WSTech-20
Address.xml
consistent with schema
WSTech-21
WSTech-22
WSTech-23
WSTech-24
WSTech-25
WSTech-26
BookStore.XML
WSTech-27
XML Technologies
Examples
Transform XML information into HTML format for web page display
Transform XML data to conform to another XML Schema
Transform between international representations (dates, currency)
Transform data into several different presentation formats (browser
screen, handheld, pure text )
WSTech-28
XSLT Fundamentals
Applies transformation rules to elements found in the
XML
You tell it what elements to find, and what to output when each is
found
WSTech-29
WSTech-30
WSTech-31
WSTech-32
XML Technologies
WSTech-33
XML Technologies
XQUERY
An SQL-like dialect for querying parts of varying XML data
sources
Extension to XPATH
WSTech-34
Participants in a Web Services Environment:
Part 2 - SOAP Technology
XML documents
within
SOAP messages
defined by
WSDL
discovered via
UDDI
WSTech-35
SOAP Technology
Originally, the acronym stood for
Simple Object Access Protocol
but not really a valid acronym any more.
Much more like
How to exchange XML documents programmatically over
the Internet using messages
Also known as e-mail for XML documents
Several versions of standard available or in progress
Latest version: SOAP 1.2.
Resource: http://www.w3.org/TR/SOAP/
WSTech-36
SOAP Overview
Resource: http://www.w3.org/TR/SOAP/
WSTech-37
SOAP Overview
Fault information
may also be
supplied not
shown here
Often the header
contains system level
data (see later
chapters)
WSTech-38
SOAP Overview
WSTech-39
SOAP Overview
WSTech-40
SOAP Overview
WSTech-41
SOAP Overview
SOAP Processing
Within the SOAP environment, the software responsible
for the generation, transmission, reception and analysis
of these messages is known as a SOAP Processor
These processors can be standalone listeners on TCP
ports
Accepting incoming SOAP messages and passing them up in
the stack
WSTech-42
SOAP Overview
SOAP 1.2
SOAP 1.1 is the most used version of SOAP
specification
Recommended by WS-I in its Basic Profile 1.0
WSTech-43
Participants in a Web Services Environment:
Part 3 - WSDL Technology
XML documents
within
SOAP messages
defined by
WSDL
discovered via
UDDI
WSTech-44
WSDL Technology
Web Services Description Language
WSDL is the KEY to using Web Services
WSDL provides an OS-, platform- language-neutral definition of
a Web Service
WSTech-45
WSDL Overview
Logical
aspects
Physical
aspects
Operation
Binding
Message
Port
Part
Type
Service
WSDL Overview
WSTech-46
<definitions> . . . </definitions>
binding: specifies concrete protocol and data formats for the operations
and messages defined by a particular portType.
port: specifies an address for a binding, thus defining a single
communication endpoint.
service: used to aggregate a set of related ports.
WSTech-47
PortType
WSDL Overview
Operation
Message
Binding
Port
Part
Service
Type
WSTech-48
WSDL Overview
PortType
Operation
Message
Part
Binding
Port
Service
Type
WSTech-49
WSDL Overview
PortType
Operation
Message
Part
Binding
Port
Service
Type
WSTech-50
WSDL Overview
PortType
Operation
Binding
Message
Part
Port
Service
Type
WSTech-51
WSDL Overview
Logical
aspects
Operation
Message
Part
// interface
// method
Type
// type of parameters
WSDL Overview
WSTech-52
WSTech-53
WSDL Overview
PortType
Operation
Message
Part
Binding
Port
Service
Type
WSTech-54
WSDL Overview
PortType
Operation
Message
Binding
Port
Part
Service
Type
WSTech-55
WSDL Overview
PortType
Operation
Message
Binding
Port
Part
Service
Type
WSTech-56
WSDL Overview
HelloWorld.WSDL
WSTech-57
WSDL Overview
WSTech-58
WSDL Overview
WSTech-59
WSDL Overview
WSTech-60
WSDL Overview
WSTech-61
WSDL Overview
WSTech-62
WSDL Overview
WSTech-63
WSDL Overview
Physical
aspects
Logical
aspects
Operation
1,2
Message
Binding
1
Port
Part
*
1
Type
Service
WSTech-64
WSDL Overview
<binding>*
1
<port>
*
<service>
<operation> // method
1,2
<message>
*
<part>
1
<type>
Physical Layer
// interface
Logical Layer
//
//
//
//
// parameters
// a type or element
Design and
Deploy time
WSTech-65
WSDL Specifies
<portType>
Service
Communications
Requirements:
<binding>
<service>
Operations,
Encoding
Physical
Structure and
And Transport of Endpoint
Typing of
Messages
Messages
Runtime
execution
XML Schema
SOAP
Request
Client
XML
SOAP
Response
E.g.,
HTTP
Web
Service
WSTech-66
Participants in a Web Services Environment:
Part 4 - UDDI Technology
XML documents
within
SOAP messages
defined by
WSDL
discovered via
UDDI
WSTech-67
UDDI Technology
Universal Description, Discovery and Integration
of Web Services
Sponsored by the OASIS organization
Supports the ability to register and find services
on the internet
Service Providers register/publish services including
WSDL file along with searchable attributes
Potential clients search UDDI registries to retrieve
WSDL suiting their service needs
Resource: http://www.uddi.org
UDDI is the least accepted of the SOAP, WSDL, UDDI
triangle. It is overly complex, and over burdened by a lot of
business level aspects (e.g., descriptions of a business).
WSTech-68
UDDI Overview
UDDI APIs
Defined by what else by WSDL files
UDDI services are Web Services !
WSTech-69
UDDI Overview
Publish API
https://uddi.ibm.com/testregistry/publishapi
Microsoft
SAP
WSTech-70
UDDI Overview
WSTech-71
Primary deliverables:
Basic Profile 1.0: this supplies advice about which combinations
of the standards should be used together, and which features
should be avoided or emphasized from each standard
Test Tools for verifying compliance with the Basic Profile
Sample Applications for assisting others in building compliant
systems
WSTech-72
Conclusions
Web Service technologies allow the exchange of XML
documents
XML documents
within
SOAP messages
defined by
WSDL
discovered via
UDDI
WSTech-73