Professional Documents
Culture Documents
T3TWS1.Introduction To SOA-R15
T3TWS1.Introduction To SOA-R15
T3TWS1.Introduction To SOA-R15
Objectives
Slide 2
What is SOA?
SOA
Slide 3
SOA
Services
Postal Services
Transport Services
Housekeeping Services
Slide 5
Example
Internet Store
Book orders
Payment
Slide 6
SOA
Services
Interoperability
Loose
coupling
Slide 7
Service Architecture 1
Service request
Provider
Consumer
Service response
Service Architecture 2
Registry
Find
Register
Consumer
Provider
Bind and Invoke
REST
Representational State Transfer
RPC
Remote Procedure Calls
DCOM
Distributed Component Object Model
RMI
Remote Method Invocation
CORBA Component Object Request Broker Architecture
WCF
Windows Communication Foundation
Web Services Also called XML Web Services to differentiate from REST web
services
Webservices
WEBSERVICES
Slide 11
What is a Webservice?
Formal Definition
A simpler definition
Slide 13
A webservice
A webservice has methods (functions) which may called over the web
The sample webservice
is called FirstService
has one method called Add
Slide 15
Slide 16
Calling a webservice
Slide 17
18
Discovery
UDDI, DISCO
Description
WSDL
Message Format
SOAP
Encoding
XML, schemas
Transport
HTTP, SMTP,
19
WSDL
SOAP?
20
Before we start.
Let us be clear on what is meant by
XML
Xtensible Markup Language. May be used to describe whatever you want.
You attach meanings to the tags.
DTD or Schema
Document Type Definition. To describe to others what tags are allowed in our
particular XML document, and in what structure we would expect to find them.
i.e. they are mechanisms for validating the XML.
Slide 21
WSDL
W3 definition
WSDL is an XML format for describing network services as a set of
endpoints operating on messages containing either document-oriented
or procedure-oriented information. The operations and messages are
described abstractly, and then bound to a concrete network protocol
and message format to define an endpoint. Related concrete endpoints
are combined into abstract endpoints (services).
Slide 22
WSDL
If you type the URL of a webservice followed by ?wsdl you would get
something like this
Slide 23
SOAP
SOAP?
24
Exchange messages
25
Envelope package
Header/Body pattern
Header
Body
Payload
26
Simple Example
<Envelope>
<Header>
<transId>345</transId>
</Header>
<Body>
<Add>
c = Add(a, b)
<a>3</a>
<b>4</b>
</Add>
</Body>
</Envelope>
27
SOAP Elements
Envelope (mandatory)
Header (optional)
28
SOAP elements
Body (mandatory)
29
Quiz
Description
Name it
Slide 30
Slide 32
Important Points
SOAP
WSDL
References - Books
Slide 35
References - websites
http://servicemix.apache.org/articles.html
www.looselycoupled.com
Slide 36