CS 511 Service Oriented Computing_v1
CS 511 Service Oriented Computing_v1
PERL
Converter Product
Location
Catalogue Example
SOA approach
Converter Product
Location
Service Oriented Architecture (SOA)
There are two major roles within SOA:
Service Provider
Service Consumer
The service provider is the maintainer of the service and the
organization that implements and makes available one or more
services for others to use.
The provider can publish them in a registry, together with a
service contract that specifies the nature of the service.
The service consumer can locate the service metadata in the
registry and develop the required client components to bind
and use the service.
Service Oriented Architecture (SOA)
Service
Registry
Web Service
Registry
Discover Service
Universal
Publish Service
Description
Web Service
Discovery and
Definition Language
Integration (UDDI)
(WSDL)
Header
Contains any optional attributes of the message.
It is an optional element.
Body
Contains the XML data comprising the message.
It is a mandatory element.
Fault
Provides information about errors.
It is an optional element.
SOAP Message Structure
A SOAP message elements are declared in the default
namespace for the SOAP envelope−
http://www.w3.org/2001/12/soap-envelope
Web Service
Registry
Discover Service
Universal
Publish Service
Description
Web Service
Discovery and
Definition Language
Integration (UDDI)
(WSDL)
<soap:Body xmlns:m="http://www.example.org/temp">
<m:GetTemp>
<m:CityName> Jaipur </m:CityName>
</m:GetTemp>
</soap:Body>
</soap:Envelope>
SOAP Response Message
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/temp">
<m:GetTempResponse>
<m:Temp> 29.1 </m:Temp>
</m:GetTempResponse>
</soap:Body>
</soap:Envelope>
RESTful Web Service
RESTful Web Serives are based on RESTful architecute.
According to REST:
Each resource have a unique Id (URI).
REST provides a model for designing network-based
software systems utilizing the client/ server model.
A client sends a request over HTTP using the
standard HTTP methods.
The server issues a response that includes the
representation of the resource.
RESTful Web Service
HTTP methods are:
GET - Request to access resource
PUT - Update a resource
POST - Create a resource
DELETE - Delete a resouce
The content of data is still transmitted using XML as part
of the HTTP content.
REST represents a lightweight alternative to SOAP.
SOAP vs REST
SOAP REST
Requires XML parser. XML can be replaced by JSON.
Protocol Architectural Style
Can work without HTTP. Relies on HTTP.
Sophisticated tools required. Not required
More Secure Less Secure
It is less productive More Productive
Service Orientation and Cloud Computing
Web services and Web2.0 - related technologies
constitute a fundamental building block for cloud
computing systems and applications.