WEBSERVICES
Mahmoud Rabie – EGJUG 2006
AGENDA
Examples
Situation
Service
Oriented
Arch.
The world
before
WEB
Solutions
SERVICES
Fund. Of
Web Services
Problems
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
AGENDA
Situation
The world
before
WEB
SERVICES
Mahmoud Rabie Mahmoud - EGJUG 2006
Problems
Solutions
The World Before Web Services
Situation
The world
before
System A
Org
A
System B
WEB
System A
SERVICES
Problems
Org
B
Solutions
System C
System B
Mahmoud Rabie Mahmoud - EGJUG 2006
The World Before Web Services
Situation
Problems
The world
before
System A
•
•
Different types of platforms
Different types of programming languages
Org
SolutionA
WEB
System A
SERVICES
Create bridge
System B
System A
C
PLSystem
A
Platform A
Bridge
System B
PL B
Platform B
Mahmoud Rabie Mahmoud - EGJUG 2006
Problems
Org
B
Solutions
System B
The World Before Web Services
Another Better Solutions
Situation
The world
before
System A
Org
A
System B
WEB
System A
SERVICES
Org
B
Solutions
Solutions
System C
System B
Mahmoud Rabie Mahmoud - EGJUG 2006
AGENDA
Situation
The world
before
WEB
Problems
Solutions
SERVICES
Probs. with
Curr. sols.
Motiv. for
Web Services
Web Services
Solution
Mahmoud Rabie Mahmoud - EGJUG 2006
Problems with current solutions
Situation
• Involve a whole learning curve
The world
before
Problems
• Not based on standardized rules and specifications
WEB
Module
A
CORBA
Module
B
Solutions
SERVICES
CORBA
Probs. with
Curr. sols.
Motiv. for
Web Services
CORBA
Module
C
Module
A
RMI
Module
B
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Web Services
Provide
Situation
The world
Standardized method of communication
between
Problems
before
software applications
WEB
Solutions
Distributed components
are
interfaced
SERVICES
via non-object-specific protocols Probs. with
Curr. sols.
Module
A
Motiv. for
Web Services
Module
Web Services
B
Solution
C++
Java
Mahmoud Rabie Mahmoud - EGJUG 2006
AGENDA
Situation
The world
before
WEB
Problems
Solutions
SERVICES
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
+ve and –ve of Web Services
Advantages of web services
Situation
The world
Web services provide interoperabilitybefore
between
Problems
various software applications running on disparate
platforms/operating systems
WEB
Web services use openSERVICES
standards and protocols
Solutions
Probs. with
Curr. sols.
By utilizing HTTP ,web services can work through
Motiv. for without
many common firewall security measures
Web Services
requiring changes to the firewall filtering
rules. Other
+ve and
-ve of often be blocked
Web Services
forms of RPC may
more
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Solution
+ve and –ve of Web Services
Advantages of web services
The world
before from
Web services allow software and services
Situation
Problems
different companies and locations to be combined
easily to provide an integrated service .
WEB
Web services allow theSERVICES
reuse of services and
components within an infrastructure .
Solutions
Probs. with
Curr. sols.
Motiv. for facilitating
Web services are loosely coupled thereby
Web Services
a distributed approach to application
integration .
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
+Ve and –Ve of Web Services
Situation
Disadvantages of web services
The world
before
Web services standards features such
as
Problems
transactions are currently nonexistent or still in their
infancy compared to more mature distributed
EB
Solutions
computing open standards such as CORBA.
W
SERVICES
Web services may suffer from poor performance Probs. with
Curr. sols.
compared to other distributed computing approaches
Motiv. for
such as RMI, CORBA, or DCOM.
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
AGENDA
Situation
The world
before
WEB
Solutions
SERVICES
Fund. Of
Web Services
Problems
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Fundamentals of Web Services
Situation
Definition
The world
Problems
A web service is a programmable component that provides a service
before
and is accessible over the Internet.
Instance
Component
Fund. Of
Web Services
WEB
Solutions
Client
SERVICES
Instance
Network
Motiv. for
Web Services
+ve and -ve of
Web Services
Instance
Mahmoud Rabie Mahmoud - EGJUG 2006
Probs. with
Curr. sols.
Client
Web Services
Client
Solution
Fundamentals of Web Services
Situation
Web services stack
The world
before
WEB
Solutions
SERVICES
Fund. Of
Web Services
Problems
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Fundamentals of Web Services
Situation
Web services stack
Service & Information Layer
The world
before
WEB
Types
Solutions
Message
SERVICES
Service
Implementation
Fund. Of
Web Services
Problems
Operation
Motiv. for
Web Services
Port Type
Binding
+ve and -ve of
Web Services
Web Service
Interface
Port
(WSDL)
Service
Mahmoud Rabie Mahmoud - EGJUG 2006
Probs. with
Curr. sols.
Web Services
Solution
Fundamentals of Web Services
Situation
Web services stack
The world
Service & Information Layer Example before
<message name="getTermRequest">
<part name="term" type="xs:string"/>
</message>
WEB
SERVICES
<message name="getTermResponse">
<part name="value" type="xs:string"/>
</message>
Problems
Solutions
Probs. with
Curr. sols.
Motiv. for
<portType name="glossaryTerms"> Web Services
Fund. Of
<operation name="getTerm">
+ve <input
and -ve of message="getTermRequest"/>
Web Services
Web Services
Web<output
Services message="getTermResponse"/>
Solution
</operation>
</portType>
Mahmoud Rabie Mahmoud - EGJUG 2006
Fundamentals of Web Services
Situation
Web services stack
The world
before
Packaging Layer
Problems
Simple Object Access Protocol (SOAP) is a lightweight protocol
designed for the exchange of information
WEB
Solutions
Defines a modular packaging model and the encoding
mechanisms for encoding data within modules .
SERVICES
Envelope
Fund. Of
Web Services
SOAP
+ve and -ve of
Web Services
Probs. with
Curr. sols.
Motiv. for
Web Services
Encoding rules
RPC representation
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Fundamentals of Web Services
Situation
Web services stack
The world
before
Packaging Layer
Problems
<SOAP-ENV:Envelope xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/"
Solutions
SOAP-ENV:encodingStyle=
'http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>A2B Header</SOAP-ENV:Header>
<SOAP-ENV:Body>
Probs. with
Curr. sols.
<SubmitEventRequest>
<Source>Copier54321</Source>
Motiv. for
<Description>
Web Services
Fund. Of
MotorFailure
+ve and </Description>
-ve of
Web Services
Web Services
Web Services
Solution
</SubmitEventRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
WEB
SERVICES
Mahmoud Rabie Mahmoud - EGJUG 2006
Fundamentals of Web Services
Situation
Web services stack
The world
before
Protocol Layer
Problems
Any of the standard Internet protocols may be used to invoke web
services over the network .
WEB
Solutions
SERVICES
The initial definition focuses specifically on HTTP/1.1 and the
encrypted HTTPS
FTP and SMTP can also be used
Fund. Of
Web Services
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
AGENDA
Situation
Service
Oriented
Arch.
The world
before
WEB
Solutions
SERVICES
Fund. Of
Web Services
Problems
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Service Oriented Arch.
Situation
Service
It's an
architectural style of building software applications
The world that promotes
Problems
loose
coupling between components so that you can
reuse them
Oriented
before
Arch.
WEB
Solutions
SERVICES
Fund. Of
Web Services
Probs. with
Curr. sols.
Motiv. for
Web Services
+ve and -ve of
Web Services
Mahmoud Rabie Mahmoud - EGJUG 2006
Web Services
Solution
Descargar

Slide 1