You are on page 1of 14

Ahmed Yousri Salama Java Developer

Introduction & Basics of Web Services

By : Ahmed Yousri Salama


Nov 2012
Hemeda2@gmail.com

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

- 1 .
- 2 .
- 3 .
- 4 .

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

.i

:
web service
.
:

( )Service Request (
( )GUI ) Interface Application Programming
API .XML
.
xml .
web services
)(service provider

consumer web service


:
. soap
()SOAP: Simple Object Access Protocol

.
xml
( ) WSDL:Web Services Description Language
Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

. ( )
( )
()UDDI: Universal Description, Discovery and Integration
.

.ii -:
-:
- 1 ( )

.
( )

- 2 ( \ )

)(Universal Discovery Directory UDDI

.
- 3 SMS Web Service
provider . consumer

-:
1 -:integration

) (integration
web service ) (open standards
Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

XML
.

2 \ -:reusability

.

.iii -:
3.1 SOAP : Simple Object Access Protocol
XML
SOAP Message
( )( ) . XML
SOAP
Firewall Port 80 . HTTP
W3C .

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

SOAP structure from WIKI

Procedure Call Remote


RPC ( ( )Client ( )Request -
( - )Server - - ( .)Response
XML /
SOAP .
.Web services
SOAP Specification
Message XML .Elements xml
SOAP SOAP Message Service
Consumer Service Provider
.
: SOAP Specification SOAP Message
Elements
Binding .Binding Address
Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

: Specification
SOAP : Processing model

- 1


- : Message Nodes



()

:
SOAP sender
A SOAP node that transmits a SOAP message.
SOAP receiver
A SOAP node that accepts a SOAP message.
SOAP message path
The set of SOAP nodes through which a single SOAP message passes.
Initial SOAP sender (Originator)
The SOAP sender that originates a SOAP message at the starting point of a
SOAP message path.
SOAP intermediary
A SOAP intermediary is both a SOAP receiver and a SOAP sender and is
targetable from within a SOAP message
Ultimate SOAP receiver
The SOAP receiver that is a final destination of a SOAP message.

Sudan-Khartoum - 00249928838881

Hemeda2@gmail.com

: Hemeda2@gmail hotmail.com

Ahmed Yousri Salama Java Developer

- 2 : Transport methods SOAP


HTTP SMTP . SOAP
HTTPS WS-I:Web Service Security
.
.
- 3 SOAP : Message format SOAP .
XML .
Example message
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 299
"SOAPAction: "http://www.w3.org/2003/05/soap-envelope
>?"<?xml version="1.0
>"<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope
><soap:Header
></soap:Header
><soap:Body
>"<m:GetStockPrice xmlns:m="http://www.example.org/stock
><m:StockName>IBM</m:StockName
></m:GetStockPrice
></soap:Body
></soap:Envelope

XML Header Body


.

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

3.2 WSDL: Web Services Description Language


"-" " whiz-dul "- XML
) ) (
)Service Consumer ( .) Service Provider
)-: (WSDL
.1
.2
.3
.4
.5
.6

WSDL Web Services Description Language


XML
XML document
describe .
locate
recommendation .W3C

SOAP message .
call SOAP
SOAP Message Server Provider

data types
integer character .
9999 service provider
integer service provider Request

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

SOAP Response String


.

Request Response
\ Notation
.

\ \ ( ) .
\

.

http://www.w3.org/TR/wsdl.
:The main structure of a WSDL document looks like this
-: WSDL
<>definitions
<>types
data types
<>types/
<>message
part parameter
Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

<>message/

<>portType
( )
Class .
<>portType/
<>binding
\ port type
Format
-:
portType
operataion . getTerm
getTerm
( ) ( ( . Input message and Output message
Operatinos : WSDL : Operation Types
- 1 : One-way
\ .
- 2 - : Request-response
\ ( )
- 3 : Solicit-response
.
Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

- 4 \ : Notification
.
Message parts parameter
(
)... :
>"<message name="getTermRequest
><part name="term" type="xs:string"/
></message
>"<message name="getTermResponse
><part name="value" type="xs:string"/
></message
>"<portType name="glossaryTerms
>"<operation name="getTerm
><input message="getTermRequest"/
><output message="getTermResponse"/
></operation
></portType

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

3.3 UDDI Universal Discovery Description and

Integration

UDDI ( ) ! ,
( )...
.

.
UDDI .

3 :
- 1 ( name address
)... contacts
- 2 : Classification ( )...
- 3 : Web Service Interface
.

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

Ahmed Yousri Salama Java Developer

:


.
-
.

Hemeda2@gmail.com

Sudan-Khartoum - 00249928838881

Hemeda2@gmail hotmail.com :

You might also like