04 Lecture-04 WebService
04 Lecture-04 WebService
Getinet Y. 1
Web Service Architecture
Web Service Definition
A Web service is a software system designed to support interoperable
machine-to-machine interaction over a network.
--- www.W3.org
Getinet Y. 2
Web Service Architecture
Getinet Y. 3
Web Service Architecture
Getinet Y. 4
Web Service Architecture
Getinet Y. 5
Web Service Architecture
Getinet Y. 6
Web Service Architecture
• a set of artifacts:
service description/interface
service contract/agreement
Getinet Y. 7
Web Service Architecture
Directory Service
Service entry
Registr
ation
publish
discover
Getinet Y. 9
Web Service Architecture
Service Broker
provides registration and discovery services to the requester while provides
publishing function to the provider so that the service or function can be retrieved in
a distributed environment
Service Provider
also the service owner, i.e. it can provide the software component that can be
accessed through network to meet the requester’s needs for particular services
Getinet Y. 10
Web Service Architecture
Getinet Y. 11
Web Service Architecture
Network Transmission Layer
The foundation of Web Service protocol stack is the IP-based network protocols
such as HTTP (Hypertext Transfer Protocol), SMTP (Simple Mail Transfer Protocol)
and FTP (File Transfer Protocol)
Getinet Y. 12
Web Service Architecture
Getinet Y. 13
Web Service Architecture
Getinet Y. 14
Web Service Architecture
Getinet Y. 15
Web Service Architecture
Getinet Y. 16
Web Service Architecture
Getinet Y. 17
Web Service Architecture
Getinet Y. 18
Web Service Architecture
Simplified Message-oriented Model
Getinet Y. 19
Web Service Architecture
Getinet Y. 20
Web Service Architecture
Getinet Y. 21
Web Service Architecture
Simplified Policy-oriented Model
Getinet Y. 22
Web Service Architecture
Getinet Y. 23
Web Service Architecture
Service Definition
A service is an abstract resource that represents a capability of performing tasks that
represents a coherent functionality from the point of view of provider entities and requester
entities. To be used, a service must be realized by a concrete provider agent.
- represents a type of resource
- performs a particular function
- has attributes such as description, semantics, identifier, and policies, etc.
- owned by service provider and used by service consumer
Getinet Y. 24
Web Service Architecture
Service Description
A service description is a set of documents that describe the interface to and semantics of a
service.
- is a machine-processable description of the service's interface
- includes a description of the service's semantics
- contains a machine-processable description of the messages that are exchanged by the
service
- is expressed in a service description language (WSDL)
Getinet Y. 25
Web Service Architecture
Service Semantics
A service semantics is the contract between the provider entity and the requester entity
concerning the effects and requirements pertaining to the use of a service.
- describes the intended effects of using a service
- is about the service tasks that constitute the service
- should be identified in a service description
- may be described in a formal, machine-processable language
Getinet Y. 26
Web Service Architecture
Service Task
A service task is an action or combination of actions that is associated with a desired goal
state. Performing the task involves executing the actions, and is intended to achieve a
particular goal state.
- is an action or combination of actions
- is associated with one or more intended goal states (user defined states)
- is performed by executing the actions associated with the task
- has a service interface
Getinet Y. 27
Web Service Architecture
Service Role
A service role is an abstract set of tasks that is identified to be relevant by a person or
organization as service provider. Service roles are also associated with particular aspects of
messages exchanged with a service.
- is a set of service tasks
- may be defined in terms of particular properties of messages
- may be established by a service owner
Getinet Y. 28
Web Service Architecture
Service Policy
A service policy is a constraint on the behavior of agents as they perform actions or access
resources
- a policy description is a machine-processable description of a policy or set of policies
- a policy guard is a mechanism that enforces one or more policies. It is deployed on behalf of
an owner
- logically, we identify two types of policy: permissions and obligations
Getinet Y. 29
Web Service Architecture
Service Interface
- A service interface defines the different types of messages that a service sends and
receives, along with the message exchange patterns that may be used.
- is the abstract boundary that a service exposes. It defines the types of messages and the
message exchange patterns that are involved in interacting with the service, together with
any conditions implied by those messages.
Getinet Y. 30
Web Service Architecture
Getinet Y. 31
Web Service Architecture
SOAP
In a loosely distributed environment, SOAP is a lightweight protocol for structured
data exchange based on XML
The service requester may make a remote function call to the service provide through
SOAP
SOAP provides a communication architecture between two applications to allow them
to transfer XML-formatted data
Getinet Y. 32
Web Service Architecture
Getinet Y. 33
Web Service Architecture
WSDL
Uses a set of XML schema to describe the Web Service as an assembly of service
ports
Decoupling service port and message schema from service implementation and
message binding, respectively, so the interface of service and message can be
implemented in different ways
Two sections of WSDL file : abstract of service, concrete binding
Getinet Y. 34
Web Service Architecture
WSDL Defination
Abstract
<wsdl:definations name=...>
<wsdl:types>
<wsdl:messages name=...>
<wsdl:portType name=...>
Concrete
<wsdl:binding name=...>
<wsdl:service name=...>
<wsdl:port name=... binding=...>
</wsdl:service>
</wsdl:definations>
Getinet Y. 35
Web Service Architecture
WSFL
Models the business processes by an assembly of Web services under certain
application scenarios
WSFL is such an XML-formatted business flow description language that defines the
execution order in the process
WSFL is used to model the business process in which the Web service is used to
provide communication channels between various service units and interactions
Getinet Y. 36
Web Service Architecture
BPEL
A business process extraction language that describes the work flow against services
Assembly a group of Web services under business rules to provide service
integration
BPEL defined business process can be executed and imported in a BPEL environment
Getinet Y. 37
Web Service Architecture
Getinet Y. 38
Web Service Architecture
Getinet Y. 39
Web Service Architecture
Thanks !
Getinet Y. 40