You are on page 1of 16

Web Services

Copyright © 2007 Accenture All Rights Reserved.


Web Services:
Definition
• A Web service is a software system
– Identified by a URL, whose public interfaces and
bindings are defined and described using XML.
• Its definition can be discovered by other software
systems
• These systems may then interact with the Web
service
– using XML based messages conveyed by Internet
protocols
• Web Services implement a Service Oriented
Architecture

Copyright © 2007 Accenture All Rights Reserved.


Web Services
• Web services are an emerging technology that
offer a solution for providing a common
collaborative architecture.
• Web services provide functional building blocks
which are not tied to any particular
programming language or hardware platform.
• They are accessible over standard Internet
protocols.

Copyright © 2007 Accenture All Rights Reserved.


Technologies

• XML (eXtensible Markup Language)


– markup language that underlies most of the specifications used
for Web services.
• SOAP (Simple Object Access Protocol)
– (Simple Object Access Protocol), similar to JDBC, is a network,
transport, and programming language and platform neutral
protocol that allows a client to call a remote service. The
message format is XML..

Copyright © 2007 Accenture All Rights Reserved.


Technologies
• WSDL (Web services description language)
– An XML-based interface and implementation description
language. The service provider uses a WSDL document
in order to specify the operations a Web service
provides.
• UDDI (universal description, discovery, and
integration)
– Both a client-side API and a SOAP-based server
implementation that can be used to store and retrieve
information on service providers and Web services.

Copyright © 2007 Accenture All Rights Reserved.


How it works

• A Web Service is a URL-addressable software resource that


performs functions (or a function).

• Web Services communicate using standard protocol known


as SOAP (Simple Object Access Protocol).

• A Web Service is located by its listing in a Universal


Discovery, Description and Integration (UDDI) directory.

Copyright © 2007 Accenture All Rights Reserved.


Technologies

Copyright © 2007 Accenture All Rights Reserved.


SOAP
• Simple Object Access
Protocol
• SOAP is an open
protocol specification
defining a uniform way of
performing RPCs using
HTTP as the underlying
communications protocol
with XML for the data
serialization.

Copyright © 2007 Accenture All Rights Reserved.


WSDL
What it is:

WSDL stands for Web Services Description


Language.
WSDL is a document written in XML. The
document describes a Web service. It specifies
the location of the service and the operations
(or methods) the service exposes

Copyright © 2007 Accenture All Rights Reserved.


WSDL Document
Structure
A WSDL document describes a web service using
these major elements:
• <portType> The operations performed by the web
service
• <message>  The messages used by the web service
• <types>  The data types used by the web service
• <binding>  The communication protocols used by the
web service

Copyright © 2007 Accenture All Rights Reserved.


A typical WSDL
<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>

Copyright © 2007 Accenture All Rights Reserved.


WSDL With SOAP
<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>
<binding type="glossaryTerms" name="b1">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<operation>
<soap:operation soapAction="http://example.com/getTerm"/>
<input> <soap:body use="literal"/> </input>
<output> <soap:body use="literal"/> </output>
</operation>
</binding>

Copyright © 2007 Accenture All Rights Reserved.


WSRP

• What is WSRP?
Web Services for Remote Portlets ( WSRP ) defines a web service
standard of how to plug remote web services from Producer into the
pages of online portals and other user-facing applications on Consumer.
• Does WSRP standard?
WSRP v1.0 is an OASIS standard.
• What is WSRP Producer?
Hosts portlets and provides such services as self-description, mark up,
registration and portlet management.
• What is WSRP Consumer?
An intermediary system that communicates with presentation oriented
web services on behalf of its users.

Copyright © 2007 Accenture All Rights Reserved.


WSRP Benefits
• Decouples the deployment and delivery of
applications
• Delivers both data and data’s presentation logic
• Needs little or no programming
• Interoperability
• Portability
• Support by large players in the industry

Copyright © 2007 Accenture All Rights Reserved.


How WSRP Works

Copyright © 2007 Accenture All Rights Reserved.


How WSRP Works

Copyright © 2007 Accenture All Rights Reserved.

You might also like