Web Services and Services Are Different Things
Web Services and Services Are Different Things
WS-* Standards
REST style
WS-*
WS-* basic standards
UDDI (where a service is)
WSDL (what a service does)
SOAP (communicate with the service)
More standards:
WS-PolicyAssertions
WS-Security
WS-Trust
WS-SecureConversation
…
WS-*
UDDI
Universal Description, Discovery and Integration
Yellow pages:
Define categories for Web Services offered
Allows others to discover your web service based upon its categorization
Green pages:
technical information that describes the behaviors and supported
functions of a web service hosted by your business.
Includes pointers to the grouping information of web services and where
the web services are located.
WSDL
Stands for Web Services Description
Language
#"& $""&
++
#"&
$ #
##
##
!"$
%$!%$
## '##$"
$!"$%"#! #
!"$
! "$)!
# ! !"$
# !$ $$!$!%" "$ $"
$!"$%"
!%$
!%$
%$!%$
%$!%$
!"$
! "$
SOAP
Once stood for Simple Object Access Protocol.
From version 1.2 lost its meaning.
<soap:Body <soap:Body
xmlns:m="http://www.example.org/ xmlns:m="http://www.example.org/st
stock"> ock">
<m:GetStockPrice> <m:GetStockPriceResponse>
<m:StockName>IBM</m:Sto <m:Price>34.5</m:Price>
ckName> </m:GetStockPriceResponse>
</m:GetStockPrice> </soap:Body>
</soap:Body>
</soap:Envelope>
</soap:Envelope>
Example
Tools: Apache AXIS (v2)
Apache Axis is an Open Source SOAP server and client(from
ws.apache.org)
Resources:
Axis 1.x: http://ws.apache.org/axis/
Axis 2: http://ws.apache.org/axis2/
Actually look at the all of the content in http://ws.apache.org
The REST Approach
REpresentational State Transfer
HTTP
URL
XML/HTML/GIF/JPEG/etc (Resource
Representations)
text/xml, text/html, image/gif, image/jpeg, etc
(MIME Types)
Resource Oriented Architecture
Appeared as a response to the SOA standard from REST
supporters
REST
Create an account in the del.icio.us service
Create a client to read REST APIs from del.icio.us
API details: http://www.peej.co.uk/articles/restfully-delicious.html