SlideShare a Scribd company logo
1 of 47
Copyright - http://soatraining.hpage.com 1
Web Services Concepts
Copyright - http://soatraining.hpage.com 2
Objectives
 After completing this lesson, you should be
able to do the following:
 Understand power of web services
 Understand WSDL
 Understand SOAP
What Is an RPC
 It is often necessary to design distributed
systems, whereby the code to run an
application is spread across multiple
computers.
 Code on one computer needs to call code on
another computer
 This is called a remote procedure call
What do we need to do RPC
 Location of the code: Where does the code you
want to call reside
 Parameters: Does the code need any parameters
 Return value: Will the procedure return any data
 Other: Networking issues, packaging any data for
transport from computer to computer
A number of RPC protocols have been developed
RPC Protocols
Several protocols exist for performing remote
procedure calls, but the most common are
 DCOM (Distributed Component Object Model),
extension of COM
 Drawback – Microsoft specific. Only works on Windows
 IIOP (Internet Inter-ORB Protocol), extension of
CORBA
 Drawback – difficult to work with
 Java RMI
 Drawback – needs to be developed in Java
 We need something that is platform and language
independent, yet is easy to use
Web Services – The New RPC Protocol
 Web services are a means for requesting
information or carrying out a processing task over
the Internet,
 They typically involve the encoding of both the
request and the response in XML.
 They use standard Internet protocols for transport,
this encoding
 The above two points makes the messages
universally available.
 That means that a Perl program running on Linux can call a
.NET program running on Windows.NET
Copyright - http://soatraining.hpage.com 7
Introducing Web Services
 Web services are:
 Self-describing business functions
 Accessible from any Web-connected device
using:
 Messaging Protocols – The messaging protocols are standards-based and
are platform independent. These enable one service to call another one -
SOAP over HTTP, JMS
 Programming standards – The underlying programming standards help create
services that conform to a predefined structure. This means it is possible to
figure out what the service does in a platform and language independent way.
- WSDL
 Network registration – The services can be searched in a common way -
UDDI
Copyright - http://soatraining.hpage.com 8
Web Services Communication Flow
Citibank
Bill Payment
Service
Interface (WSDL)
Application Program
(Service Implementation)
Vodafone Bill Payment Service
1
3
4
Publish
Find
Invoke
SOAP Web Services
Directory
(UDDI)Internet
2 Register
5
Communicating
the response
Web Services Communication Flow
Example To understand how web services work, lets take an example.
 Scenario – A Citibank customer wants to pay his Vodafone phone bill through the bank’s website.
 Solution
1. First, the Vodafone IT team would create a service that allows one to pay their bills through a web service. This service may be
implemented in any way they please, using ADF, POJO, PL/SQL etc. However, the service needs to expose its interface according to
WSDL specification
2. In order to facilitate clients to be able to find this service, the Vodafone team publishes this WSDL to a web services directory. The directory
is capable of storing different kind of information like the request and response messages, version, publisher details, type of service etc. All
this information is structured in a standard way so that interested parties can search or discover them. This common format is the UDDI
3. Citibank IT team, which is developing their website, and want to provide this service to their customer, finds the service developed by
Vodafone team. This completes the setup.
4. When a customer chooses to pay his bill, the required information is sent to the Vodafone Bill Payment web service. This communication is
done using a SOAP message. As SOAP can work over HTTP, which is the most used protocol on the Internet, this invocation can utilize
the power of Internet
5. The Vodafone Bill Payment service acknowledges success or failure of the transaction
 The above example brings out the interplay of:
 Messaging protocols - SOAP
 Programming standards – Interface based on WSDL standard
 Network registration – Information stored as per UDDI standard
 Note: A Public Registry, while a really cool concept, didn’t really take off as expected. However, the concept itself found
takers at organization level and typically an organization that takes its SOA seriously will have a registry setup.
Copyright - http://soatraining.hpage.com 9
Copyright - http://soatraining.hpage.com 10
Describing a web service
Lets understand what it takes to describe a web service. If
we can appreciate these, then understanding why WSDL
looks like it does would be that much simpler.
• Requirement 1: We need to tell what is the location of
this web service
• Requirement 2: We need to tell what is the language the
web service speaks
• Requirement 3: We need to tell what functions or
operations this web service is providing
• Requirement 4: We need to tell what input and output
parameters the service takes
• Requirement 5: We need to tell the datatype of these
parameters
Copyright - http://soatraining.hpage.com 11
WSDL Enters….
 A WSDL document is just a simple XML document.
 It contains set of definitions to describe a web service.
 WSDL document fulfills all the above requirements
 Requirement 1 – Where is the service hosted
 <service>
 Requirement 2 – What protocol to use to talk to the service
 <binding>
 Requirement 3 – What are the operations
 <portType>
 Requirement 4 – What are the parameters
 <message>
 Requirement 5 – What is the datatype of the messages
 <type>
Copyright - http://soatraining.hpage.com 12
Introducing WSDL
 WSDL stands for Web Services Description
Language
 WSDL is written in XML
 WSDL is used to describe Web services
 WSDL is also used to locate Web services
 WSDL is a W3C recommendation
Copyright - http://soatraining.hpage.com 13
WSDL Document Structure
<definitions>
<types>
definition of types........
</types>
<message>
definition of a message....
</message>
<portType>
definition of a port.......
</portType>
<binding>
definition of a binding....
</binding>
<service>
definition of a service....
</service>
</definitions>
Copyright - http://soatraining.hpage.com 14
WSDL Ports
 The <portType> element is the
most important WSDL element.
 It describes an interface of the
webservice – one or more
operations that can be
performed, and the messages
that are involved in those
operations.
 A portType can define multiple
operations
 There can be multiple portType
elements as well.
 Useful to expose different
operations with different bindings
Copyright - http://soatraining.hpage.com 15
Operation Types
Type Definition
One-way The operation can receive a message but will not return a
response
Request-response The operation can receive a request and will return a
response
Solicit-response The operation can send a request and will wait for a
response
Notification The operation can send a message but will not wait for a
response
Copyright - http://soatraining.hpage.com 16
One-way operation type
The operation can receive a message but will not return a response
Copyright - http://soatraining.hpage.com 17
Request-response operation type
The operation can receive a request and will return a response
Copyright - http://soatraining.hpage.com 18
 Now, a web service operation can take only
one parameter. But I want to pass multiple
parameters……what do I need to do
Copyright - http://soatraining.hpage.com 19
WSDL Messages
 The <message> element defines the data
elements of an operation.
 Each message can consist of one or more
parts. The parts can be compared to the
parameters of a function call in a traditional
programming language.
Copyright - http://soatraining.hpage.com 20
 I want to pass a complex object to my web
service……what do I need to do
Copyright - http://soatraining.hpage.com 21
WSDL Types
 The <types> element defines the data type
that are used by the web service.
 For maximum platform neutrality, WSDL uses
XML Schema syntax to define data types.
Copyright - http://soatraining.hpage.com 22
 I want my web service to be accessible to a
HTTP client, as well as to a RMI client and a
SOAP client……what do I need to do
Copyright - http://soatraining.hpage.com 23
WSDL Bindings
 A portType is still considered an abstract definition
because you don't know how its messages are
represented on the wire
 This is where we apply a binding to a portType
 The WSDL binding element describes the concrete
details of using a particular portType with a given
protocol.
 <binding> defines the message format and protocol
details for each operation in a portType.
 There would be atleast one binding for each portType.
One portType can also have multiple bindings
 Examples of bindings - HTTP GET, HTTP POST, or
SOAP.
 binding
 name – can be anything
 Type – points to port
 soap:binding
 Style – rpc or document
 Using document style in SOAP indicates that the body will contain an
XML document, and that the message parts specify the XML elements
that will be placed there. Using rpc style in SOAP indicates that the
body will contain an XML representation of a method call and that the
message parts represent the parameters to the method.
 Transport – soap protocol to
use
 operation
 Defines each operation the
service exposes
WSDL Bindings
Copyright - http://soatraining.hpage.com 25
WSDL Services
 The <services> element connects the binding to an
actual URL where the service is available.
A service element describes a Web service as a collection of port elements. A port element defines a specific network
address for a binding. The sample below shows the basic outline of a service that supplies an address for a SOAP
binding:
<service name="ServiceName">
<port name="PortName" binding="BindingRef">
<soap:address location="URL"/>
</port>
</service>
The ServiceName sets the name of the service. The PortName sets the name of the specific address. The
BindingRef refers to the name of a binding element. The BindingRef must be namespace qualified if the
targetNamespace for the WSDL definitions element is not the same as the default namespace.
Copyright - http://soatraining.hpage.com 27
Complete WSDL Example<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:y="http://example.org/math/"
xmlns:ns="http://example.org/math/types/"
targetNamespace="http://example.org/math/"
>
<types>
<xs:schema
targetNamespace="http://example.org/math/types/"
xmlns="http://example.org/math/types/"
>
<xs:complexType name="MathInput">
<xs:sequence>
<xs:element name="x" type="xs:double"/>
<xs:element name="y" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="MathOutput">
<xs:sequence>
<xs:element name="result" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Add" type="MathInput"/>
<xs:element name="AddResponse" type="MathOutput"/>
<xs:element name="Subtract" type="MathInput"/>
<xs:element name="SubtractResponse" type="MathOutput"/>
</xs:schema>
</types>
<message name="AddMessage">
<part name="parameter" element="ns:Add"/>
</message>
<message name="AddResponseMessage">
<part name="parameter" element="ns:AddResponse"/>
</message>
<message name="SubtractMessage">
<part name="parameter" element="ns:Subtract"/>
</message>
<message name="SubtractResponseMessage">
<part name="parameter" element="ns:SubtractResponse"/>
</message>
<portType name="MathInterface">
<operation name="Add">
<input message="y:AddMessage"/>
<output message="y:AddResponseMessage"/>
</operation>
<operation name="Subtract">
<input message="y:SubtractMessage"/>
<output message="y:SubtractResponseMessage"/>
</operation>
</portType>
<binding name="MathSoapHttpBinding" type="y:MathInterface">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Add">
<soap:operation
soapAction="http://example.org/math/#Add"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="Subtract">
<soap:operation
soapAction="http://example.org/math/#Subtract"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="MathService">
<port name="MathEndpoint" binding="y:MathSoapHttpBinding">
<soap:address location="http://localhost/math/math.asmx"/>
</port>
</service>
</definitions>
As seen in JDeveloper
Copyright - http://soatraining.hpage.com 29
SOAP
 SOAP stands for Simple Object Access Protocol
 SOAP is a communication protocol
 SOAP is for communication between applications
 SOAP is a format for sending messages
 SOAP communicates via Internet
 SOAP is platform independent
 SOAP is language independent
 SOAP is based on XML
 Relies on other Application Layer protocols (most notably
Remote Procedure Call (RPC) and HTTP) for message
negotiation and transmission.
 SOAP is a W3C recommendation
Copyright - http://soatraining.hpage.com 30
SOAP Message Structure
SOAP Envelope - encloses
payload
SOAP Header - encloses
Headers
SOAP body contains
SOAP message name
and data
Copyright - http://soatraining.hpage.com 31
SOAP Request
Copyright - http://soatraining.hpage.com 32
SOAP Response
Copyright - http://soatraining.hpage.com 33
UDDI
 UDDI stands for Universal Description,
Discovery and Integration.
 The UDDI specification enables businesses
to quickly, easily, and dynamically find and
transact with one another.
 UDDI enables a business to
1. Describe its business and its services,
2. Discover other businesses that offer desired
services
3. Integrate with these other businesses.
Copyright - http://soatraining.hpage.com 34
UDDI Data Model
The information that makes up a UDDI registry consists of instances of four core
data structure types, the businessEntity, the businessService, the
bindingTemplate and the tModel, together with instances of additional data
structure types defined in the UDDI API Schema.
Each of the core data structure types is used to express specific types of data,
arranged in the relationship shown
Why do we need a registry
 The ability to register, discover, and govern Web services is an essential
requirement for any Service Oriented Architecture (SOA) implementation.
 A highly available environment contains multiple application server nodes,
multiple instances, and multiple processes. Regardless of where the
services will be deployed they have to be flexible enough to run anywhere
without requiring changes to the actual process implementation.
 This need may not be fully appreciated in the early stages of an SOA roll-
out when dealing with a small number of services.
 However, large organizations will typically need to support a large number of
Web services, and as the number of services deployed grows to dozens or
hundreds, centralized facilities for access and control of service metadata
and artifacts becomes critical.
 A service registry provides these capabilities and is a key infrastructural
component and cornerstone for SOA deployments
Copyright - http://soatraining.hpage.com 35
Registry and UDDI
 UDDI defines a framework to enable the
establishment of service registries to provide
distributed directory service to the producers
and consumers of Web services. It includes a
common set of SOAP-based APIs to support
registration and advertisement of Web
services by service producers, and to
facilitate the searching and lookup of Web
services by service consumers.
Copyright - http://soatraining.hpage.com 36
REST
 Short for REpresentational State Transfer, REST is
not a specification, but rather an architecture
 Asserts that all resources should be directly
addressable by an URL
 In simple words, instead of HTTP POST, we use HTTP
GET, pass the parameters over a URL and get the results !
 Eg.:
http://www.webservicex.net/stockquote.asmx/GetQuote?
symbol=ORCL
 Some purist may say REST is not Web services, but
in my opinion, its nothing short of it either.
 True, you’re not sending an XML request, but most of the
time you are getting an XML response.
Challenge
 We want to create a WSDL file that defines
an operation called CreateStudent.
CreateStudent should be a request response
operation and should take a Student object
as input and return the Student ID as output.
Student object stores the student name and
marks
 Solution to this challenge is available in
CreateAWsdlFromScratch.doc. Code is
under Project1.zip
Copyright - http://soatraining.hpage.com 39
Resources
 People and companies develop web
services. Some of them are free too 
 http://www.webservicex.net/stockquote.asmx
 Links to lotsa web services on one page !
http://www.actionscript.org/forums/showthread.ph
p3?t=70742
Copyright - http://soatraining.hpage.com 40
References
 WSDL Tutorial -
http://www.w3schools.com/WSDL/default.asp
 SOAP Tutorial
http://www.w3schools.com/soap/default.asp
 More on WSDL elements
http://www2.roguewave.com/support/docs/leif
/leif/html/leifug/B-6.html
Extra Slides
Copyright - http://soatraining.hpage.com 41
Open System Interconnection
Reference Model
 http://en.wikipedia.org/wiki/OSI_model
 It is an abstract description for layered
communications and computer network
protocol design
Copyright - http://soatraining.hpage.com 42
Examples of Protocols in each layer
Copyright - http://soatraining.hpage.com 43
More WSDL Examples
 WSDL containing multiple portType
 The following is a variation of the Math.wsdl
where we want to have add and subtract
operations for decimal and binary numbers
 The designers felt it best to create two different
port types to segregate the interfaces (although,
technically, we can combine the operations in a
single interface)
 For brevity, subtract operation is not shown.
Copyright - http://soatraining.hpage.com 45
Multiple portTypes
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:y="http://example.org/math/"
xmlns:ns="http://example.org/math/types/"
targetNamespace="http://example.org/math/"
>
…
<portType name="MathInterface">
<operation name="Add">
<input message="y:AddMessage"/>
<output message="y:AddResponseMessage"/>
</operation>
</portType>
<portType name="MathBinaryInterface">
<operation name="AddBinary">
<input message="y:AddBinaryMessage"/>
<output message="y:AddBinaryResponseMessage"/>
</operation>
</portType>
<binding name="MathSoapHttpBinding" type="y:MathInterface">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Add">
<soap:operation
soapAction="http://example.org/math/#Add"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="MathBinarySoapHttpBinding" type="y:MathBinaryInterface">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="AddBinary">
<soap:operation
soapAction="http://example.org/math/#AddBinary"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="MathService">
<port name="MathEndpoint" binding="y:MathSoapHttpBinding">
<soap:address location="http://localhost/math/math.asmx"/>
</port>
<port name="MathEndpoint" binding="y:MathBinarySoapHttpBinding">
<soap:address location="http://localhost/math/math.asmx"/>
</port>
</service>
</definitions>
More WSDL Examples
 Following WSDL contains multiple bindings
for a portType
 This allows to accept messages from
different protocols like SOAP over HTTP,
SOAP1.2 over HTTP, HTTP Get and HTTP
Post
 For brevity, subtract operation is not shown
Copyright - http://soatraining.hpage.com 47Copyright - http://soatraining.hpage.com 47
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:y="http://example.org/math/"
xmlns:ns="http://example.org/math/types/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://example.org/math/">
…
<portType name="MathInterface">
<operation name="Add">
<input message="y:AddMessage"/>
<output message="y:AddResponseMessage"/>
</operation>
</portType>
<binding name="MathSoapHttpBinding“
type="y:MathInterface">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Add">
<soap:operation
soapAction="http://example.org/math/#Add"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="MathSoap12HttpBinding"
type="y:MathInterface">
<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Add">
<soap12:operation
soapAction="http://example.org/math/#Add"/>
<input>
<soap12:body use="literal"/>
</input>
<output>
<soap12:body use="literal"/>
</output>
</operation>
</binding>
<binding name="MathHttpGetBinding" type="y:MathInterface">
<http:binding verb="GET"/>
<operation name="Add">
<http:operation location="/Add"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<binding name="MathHttpPostBinding" type="y:MathInterface">
<http:binding verb="POST"/>
<operation name="Add">
<http:operation location="/Add"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<service name="MathService">
<port name="MathEndpoint" binding="y:MathSoapHttpBinding">
<soap:address location="http://localhost/math/math.asmx"/>
</port>
<port name="MathEndpoint" binding="y:MathBinarySoapHttpBinding">
<soap:address location="http://localhost/math/math.asmx"/>
</port>
</service>
</definitions>

More Related Content

What's hot

SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolAnushka Patil
 
Description of soa and SOAP,WSDL & UDDI
Description of soa and SOAP,WSDL & UDDIDescription of soa and SOAP,WSDL & UDDI
Description of soa and SOAP,WSDL & UDDITUSHAR VARSHNEY
 
Web service assignment
Web service assignmentWeb service assignment
Web service assignmentancymary1996
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modellingVaibhav Khanna
 
Web Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperWeb Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperTorry Harris Business Solutions
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web servicesNeil Ghosh
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio
 
Java Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web ServicesJava Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web ServicesIMC Institute
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Conceptspasam suresh
 
CS8651 Internet Programming - Basics of HTML, HTML5, CSS
CS8651   Internet Programming - Basics of HTML, HTML5, CSSCS8651   Internet Programming - Basics of HTML, HTML5, CSS
CS8651 Internet Programming - Basics of HTML, HTML5, CSSVigneshkumar Ponnusamy
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAPSafwan Hashmi
 
SOAP, UDDI, WSDL. XML definitions
SOAP, UDDI, WSDL. XML definitions SOAP, UDDI, WSDL. XML definitions
SOAP, UDDI, WSDL. XML definitions Wish Mrt'xa
 

What's hot (20)

SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access Protocol
 
Description of soa and SOAP,WSDL & UDDI
Description of soa and SOAP,WSDL & UDDIDescription of soa and SOAP,WSDL & UDDI
Description of soa and SOAP,WSDL & UDDI
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
Wsdl
WsdlWsdl
Wsdl
 
Web service assignment
Web service assignmentWeb service assignment
Web service assignment
 
Wsdl
WsdlWsdl
Wsdl
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modelling
 
Web Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperWeb Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris Whitepaper
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 
Web service introduction
Web service introductionWeb service introduction
Web service introduction
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUIAdvancio, Inc. Academy: Web Sevices, WCF & SOAPUI
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
 
Java Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web ServicesJava Web Services [1/5]: Introduction to Web Services
Java Web Services [1/5]: Introduction to Web Services
 
Webbasics
WebbasicsWebbasics
Webbasics
 
WSDL
WSDLWSDL
WSDL
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
CS8651 Internet Programming - Basics of HTML, HTML5, CSS
CS8651   Internet Programming - Basics of HTML, HTML5, CSSCS8651   Internet Programming - Basics of HTML, HTML5, CSS
CS8651 Internet Programming - Basics of HTML, HTML5, CSS
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
SOAP Overview
SOAP OverviewSOAP Overview
SOAP Overview
 
SOAP, UDDI, WSDL. XML definitions
SOAP, UDDI, WSDL. XML definitions SOAP, UDDI, WSDL. XML definitions
SOAP, UDDI, WSDL. XML definitions
 

Viewers also liked

Java power to the SOA developer (ODTUG Kaleidoscope 2010)
Java power to the SOA developer (ODTUG Kaleidoscope 2010)Java power to the SOA developer (ODTUG Kaleidoscope 2010)
Java power to the SOA developer (ODTUG Kaleidoscope 2010)Lucas Jellema
 
Designing (Beautiful) Software
Designing (Beautiful) SoftwareDesigning (Beautiful) Software
Designing (Beautiful) SoftwareNishant Arora
 
SOA DESIGN PATTERNS A COMPREHENSIVE COURSE
SOA DESIGN PATTERNS A COMPREHENSIVE COURSESOA DESIGN PATTERNS A COMPREHENSIVE COURSE
SOA DESIGN PATTERNS A COMPREHENSIVE COURSEAmit Midha
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented ArchitectureLuqman Shareef
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...Lucas Jellema
 
Human Interactions in Mixed Service-Oriented Systems
Human Interactions in Mixed Service-Oriented SystemsHuman Interactions in Mixed Service-Oriented Systems
Human Interactions in Mixed Service-Oriented SystemsDaniel Schall
 
Ws Soa V6 Theory And Practice
Ws Soa V6 Theory And PracticeWs Soa V6 Theory And Practice
Ws Soa V6 Theory And PracticePini Cohen
 
Cloud + Soa: Enterprise Service Platform
Cloud + Soa: Enterprise Service PlatformCloud + Soa: Enterprise Service Platform
Cloud + Soa: Enterprise Service Platformvictorlbrown
 
Service Oriented Architecture
Service Oriented Architecture Service Oriented Architecture
Service Oriented Architecture Prabhat gangwar
 
Effectiveness Of Service Oriented Architecture In Enterprise Architecture F...
Effectiveness Of Service Oriented Architecture In Enterprise Architecture   F...Effectiveness Of Service Oriented Architecture In Enterprise Architecture   F...
Effectiveness Of Service Oriented Architecture In Enterprise Architecture F...mdfachowdhury
 
Keys To Successful Governance with SOA
Keys To Successful Governance with SOAKeys To Successful Governance with SOA
Keys To Successful Governance with SOANathaniel Palmer
 

Viewers also liked (20)

Java power to the SOA developer (ODTUG Kaleidoscope 2010)
Java power to the SOA developer (ODTUG Kaleidoscope 2010)Java power to the SOA developer (ODTUG Kaleidoscope 2010)
Java power to the SOA developer (ODTUG Kaleidoscope 2010)
 
Designing (Beautiful) Software
Designing (Beautiful) SoftwareDesigning (Beautiful) Software
Designing (Beautiful) Software
 
Jms
JmsJms
Jms
 
Web service
Web serviceWeb service
Web service
 
SOA DESIGN PATTERNS A COMPREHENSIVE COURSE
SOA DESIGN PATTERNS A COMPREHENSIVE COURSESOA DESIGN PATTERNS A COMPREHENSIVE COURSE
SOA DESIGN PATTERNS A COMPREHENSIVE COURSE
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented Architecture
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
 
Soa overview
Soa overviewSoa overview
Soa overview
 
SOA Open Source
SOA Open SourceSOA Open Source
SOA Open Source
 
Human Interactions in Mixed Service-Oriented Systems
Human Interactions in Mixed Service-Oriented SystemsHuman Interactions in Mixed Service-Oriented Systems
Human Interactions in Mixed Service-Oriented Systems
 
V6 Sales Slide
V6  Sales SlideV6  Sales Slide
V6 Sales Slide
 
Soa
SoaSoa
Soa
 
Ws Soa V6 Theory And Practice
Ws Soa V6 Theory And PracticeWs Soa V6 Theory And Practice
Ws Soa V6 Theory And Practice
 
Cloud + Soa: Enterprise Service Platform
Cloud + Soa: Enterprise Service PlatformCloud + Soa: Enterprise Service Platform
Cloud + Soa: Enterprise Service Platform
 
Service Oriented Architecture
Service Oriented Architecture Service Oriented Architecture
Service Oriented Architecture
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
Effectiveness Of Service Oriented Architecture In Enterprise Architecture F...
Effectiveness Of Service Oriented Architecture In Enterprise Architecture   F...Effectiveness Of Service Oriented Architecture In Enterprise Architecture   F...
Effectiveness Of Service Oriented Architecture In Enterprise Architecture F...
 
Qos
QosQos
Qos
 
Web Service Security
Web Service SecurityWeb Service Security
Web Service Security
 
Keys To Successful Governance with SOA
Keys To Successful Governance with SOAKeys To Successful Governance with SOA
Keys To Successful Governance with SOA
 

Similar to Web Services Concepts: Understanding WSDL, SOAP and RPC Protocols

Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqmanguesteb791b
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics Testing World
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and developmentishmecse13
 
Web programming
Web programmingWeb programming
Web programmingsowfi
 
Web services
Web services Web services
Web services BTailor
 
Web Service
Web ServiceWeb Service
Web ServiceKumar S
 
Web services for developer
Web services for developerWeb services for developer
Web services for developerRafiq Ahmed
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxssuser403d87
 
WebService-Java
WebService-JavaWebService-Java
WebService-Javahalwal
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorialAbhi Arya
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETPonraj
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technologysanjoysanyal
 

Similar to Web Services Concepts: Understanding WSDL, SOAP and RPC Protocols (20)

Web services
Web servicesWeb services
Web services
 
Web services
Web servicesWeb services
Web services
 
Overview of web services
Overview of web servicesOverview of web services
Overview of web services
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
 
SOA and web services
SOA and web servicesSOA and web services
SOA and web services
 
Introduction to WAP
Introduction to WAPIntroduction to WAP
Introduction to WAP
 
Web programming
Web programmingWeb programming
Web programming
 
Web services
Web services Web services
Web services
 
Web Service
Web ServiceWeb Service
Web Service
 
Web server
Web serverWeb server
Web server
 
0130225347
01302253470130225347
0130225347
 
Web services for developer
Web services for developerWeb services for developer
Web services for developer
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
WebService-Java
WebService-JavaWebService-Java
WebService-Java
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
Web Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NETWeb Service Implementation Using ASP.NET
Web Service Implementation Using ASP.NET
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
 

More from XAVIERCONSULTANTS (20)

Bpmedn
BpmednBpmedn
Bpmedn
 
Xavier mds upload
Xavier mds uploadXavier mds upload
Xavier mds upload
 
Xavier file adapter_filemoving
Xavier file adapter_filemovingXavier file adapter_filemoving
Xavier file adapter_filemoving
 
Day2 xslt x_path_xquery
Day2 xslt x_path_xqueryDay2 xslt x_path_xquery
Day2 xslt x_path_xquery
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 
Adavanced faulthandling
Adavanced faulthandlingAdavanced faulthandling
Adavanced faulthandling
 
SoaFAQS
SoaFAQSSoaFAQS
SoaFAQS
 
Xpath
Xpath Xpath
Xpath
 
Readme
ReadmeReadme
Readme
 
Bpminto
BpmintoBpminto
Bpminto
 
Bpm
BpmBpm
Bpm
 
Bpmnt-102-edn-integration
Bpmnt-102-edn-integrationBpmnt-102-edn-integration
Bpmnt-102-edn-integration
 
Soaosbcourse_content
Soaosbcourse_contentSoaosbcourse_content
Soaosbcourse_content
 
Oracle soa course_content
Oracle soa course_contentOracle soa course_content
Oracle soa course_content
 
EVENT DELIVERY
EVENT DELIVERY EVENT DELIVERY
EVENT DELIVERY
 
jms-integration
jms-integrationjms-integration
jms-integration
 
Bpelprocess-manager
Bpelprocess-managerBpelprocess-manager
Bpelprocess-manager
 
Bpel activities to upload club oracle
Bpel activities to upload club oracleBpel activities to upload club oracle
Bpel activities to upload club oracle
 
FiletodbAdapters
FiletodbAdaptersFiletodbAdapters
FiletodbAdapters
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Web Services Concepts: Understanding WSDL, SOAP and RPC Protocols

  • 2. Copyright - http://soatraining.hpage.com 2 Objectives  After completing this lesson, you should be able to do the following:  Understand power of web services  Understand WSDL  Understand SOAP
  • 3. What Is an RPC  It is often necessary to design distributed systems, whereby the code to run an application is spread across multiple computers.  Code on one computer needs to call code on another computer  This is called a remote procedure call
  • 4. What do we need to do RPC  Location of the code: Where does the code you want to call reside  Parameters: Does the code need any parameters  Return value: Will the procedure return any data  Other: Networking issues, packaging any data for transport from computer to computer A number of RPC protocols have been developed
  • 5. RPC Protocols Several protocols exist for performing remote procedure calls, but the most common are  DCOM (Distributed Component Object Model), extension of COM  Drawback – Microsoft specific. Only works on Windows  IIOP (Internet Inter-ORB Protocol), extension of CORBA  Drawback – difficult to work with  Java RMI  Drawback – needs to be developed in Java  We need something that is platform and language independent, yet is easy to use
  • 6. Web Services – The New RPC Protocol  Web services are a means for requesting information or carrying out a processing task over the Internet,  They typically involve the encoding of both the request and the response in XML.  They use standard Internet protocols for transport, this encoding  The above two points makes the messages universally available.  That means that a Perl program running on Linux can call a .NET program running on Windows.NET
  • 7. Copyright - http://soatraining.hpage.com 7 Introducing Web Services  Web services are:  Self-describing business functions  Accessible from any Web-connected device using:  Messaging Protocols – The messaging protocols are standards-based and are platform independent. These enable one service to call another one - SOAP over HTTP, JMS  Programming standards – The underlying programming standards help create services that conform to a predefined structure. This means it is possible to figure out what the service does in a platform and language independent way. - WSDL  Network registration – The services can be searched in a common way - UDDI
  • 8. Copyright - http://soatraining.hpage.com 8 Web Services Communication Flow Citibank Bill Payment Service Interface (WSDL) Application Program (Service Implementation) Vodafone Bill Payment Service 1 3 4 Publish Find Invoke SOAP Web Services Directory (UDDI)Internet 2 Register 5 Communicating the response
  • 9. Web Services Communication Flow Example To understand how web services work, lets take an example.  Scenario – A Citibank customer wants to pay his Vodafone phone bill through the bank’s website.  Solution 1. First, the Vodafone IT team would create a service that allows one to pay their bills through a web service. This service may be implemented in any way they please, using ADF, POJO, PL/SQL etc. However, the service needs to expose its interface according to WSDL specification 2. In order to facilitate clients to be able to find this service, the Vodafone team publishes this WSDL to a web services directory. The directory is capable of storing different kind of information like the request and response messages, version, publisher details, type of service etc. All this information is structured in a standard way so that interested parties can search or discover them. This common format is the UDDI 3. Citibank IT team, which is developing their website, and want to provide this service to their customer, finds the service developed by Vodafone team. This completes the setup. 4. When a customer chooses to pay his bill, the required information is sent to the Vodafone Bill Payment web service. This communication is done using a SOAP message. As SOAP can work over HTTP, which is the most used protocol on the Internet, this invocation can utilize the power of Internet 5. The Vodafone Bill Payment service acknowledges success or failure of the transaction  The above example brings out the interplay of:  Messaging protocols - SOAP  Programming standards – Interface based on WSDL standard  Network registration – Information stored as per UDDI standard  Note: A Public Registry, while a really cool concept, didn’t really take off as expected. However, the concept itself found takers at organization level and typically an organization that takes its SOA seriously will have a registry setup. Copyright - http://soatraining.hpage.com 9
  • 10. Copyright - http://soatraining.hpage.com 10 Describing a web service Lets understand what it takes to describe a web service. If we can appreciate these, then understanding why WSDL looks like it does would be that much simpler. • Requirement 1: We need to tell what is the location of this web service • Requirement 2: We need to tell what is the language the web service speaks • Requirement 3: We need to tell what functions or operations this web service is providing • Requirement 4: We need to tell what input and output parameters the service takes • Requirement 5: We need to tell the datatype of these parameters
  • 11. Copyright - http://soatraining.hpage.com 11 WSDL Enters….  A WSDL document is just a simple XML document.  It contains set of definitions to describe a web service.  WSDL document fulfills all the above requirements  Requirement 1 – Where is the service hosted  <service>  Requirement 2 – What protocol to use to talk to the service  <binding>  Requirement 3 – What are the operations  <portType>  Requirement 4 – What are the parameters  <message>  Requirement 5 – What is the datatype of the messages  <type>
  • 12. Copyright - http://soatraining.hpage.com 12 Introducing WSDL  WSDL stands for Web Services Description Language  WSDL is written in XML  WSDL is used to describe Web services  WSDL is also used to locate Web services  WSDL is a W3C recommendation
  • 13. Copyright - http://soatraining.hpage.com 13 WSDL Document Structure <definitions> <types> definition of types........ </types> <message> definition of a message.... </message> <portType> definition of a port....... </portType> <binding> definition of a binding.... </binding> <service> definition of a service.... </service> </definitions>
  • 14. Copyright - http://soatraining.hpage.com 14 WSDL Ports  The <portType> element is the most important WSDL element.  It describes an interface of the webservice – one or more operations that can be performed, and the messages that are involved in those operations.  A portType can define multiple operations  There can be multiple portType elements as well.  Useful to expose different operations with different bindings
  • 15. Copyright - http://soatraining.hpage.com 15 Operation Types Type Definition One-way The operation can receive a message but will not return a response Request-response The operation can receive a request and will return a response Solicit-response The operation can send a request and will wait for a response Notification The operation can send a message but will not wait for a response
  • 16. Copyright - http://soatraining.hpage.com 16 One-way operation type The operation can receive a message but will not return a response
  • 17. Copyright - http://soatraining.hpage.com 17 Request-response operation type The operation can receive a request and will return a response
  • 18. Copyright - http://soatraining.hpage.com 18  Now, a web service operation can take only one parameter. But I want to pass multiple parameters……what do I need to do
  • 19. Copyright - http://soatraining.hpage.com 19 WSDL Messages  The <message> element defines the data elements of an operation.  Each message can consist of one or more parts. The parts can be compared to the parameters of a function call in a traditional programming language.
  • 20. Copyright - http://soatraining.hpage.com 20  I want to pass a complex object to my web service……what do I need to do
  • 21. Copyright - http://soatraining.hpage.com 21 WSDL Types  The <types> element defines the data type that are used by the web service.  For maximum platform neutrality, WSDL uses XML Schema syntax to define data types.
  • 22. Copyright - http://soatraining.hpage.com 22  I want my web service to be accessible to a HTTP client, as well as to a RMI client and a SOAP client……what do I need to do
  • 23. Copyright - http://soatraining.hpage.com 23 WSDL Bindings  A portType is still considered an abstract definition because you don't know how its messages are represented on the wire  This is where we apply a binding to a portType  The WSDL binding element describes the concrete details of using a particular portType with a given protocol.  <binding> defines the message format and protocol details for each operation in a portType.  There would be atleast one binding for each portType. One portType can also have multiple bindings  Examples of bindings - HTTP GET, HTTP POST, or SOAP.
  • 24.  binding  name – can be anything  Type – points to port  soap:binding  Style – rpc or document  Using document style in SOAP indicates that the body will contain an XML document, and that the message parts specify the XML elements that will be placed there. Using rpc style in SOAP indicates that the body will contain an XML representation of a method call and that the message parts represent the parameters to the method.  Transport – soap protocol to use  operation  Defines each operation the service exposes WSDL Bindings
  • 25. Copyright - http://soatraining.hpage.com 25 WSDL Services  The <services> element connects the binding to an actual URL where the service is available. A service element describes a Web service as a collection of port elements. A port element defines a specific network address for a binding. The sample below shows the basic outline of a service that supplies an address for a SOAP binding: <service name="ServiceName"> <port name="PortName" binding="BindingRef"> <soap:address location="URL"/> </port> </service> The ServiceName sets the name of the service. The PortName sets the name of the specific address. The BindingRef refers to the name of a binding element. The BindingRef must be namespace qualified if the targetNamespace for the WSDL definitions element is not the same as the default namespace.
  • 26.
  • 27. Copyright - http://soatraining.hpage.com 27 Complete WSDL Example<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:y="http://example.org/math/" xmlns:ns="http://example.org/math/types/" targetNamespace="http://example.org/math/" > <types> <xs:schema targetNamespace="http://example.org/math/types/" xmlns="http://example.org/math/types/" > <xs:complexType name="MathInput"> <xs:sequence> <xs:element name="x" type="xs:double"/> <xs:element name="y" type="xs:double"/> </xs:sequence> </xs:complexType> <xs:complexType name="MathOutput"> <xs:sequence> <xs:element name="result" type="xs:double"/> </xs:sequence> </xs:complexType> <xs:element name="Add" type="MathInput"/> <xs:element name="AddResponse" type="MathOutput"/> <xs:element name="Subtract" type="MathInput"/> <xs:element name="SubtractResponse" type="MathOutput"/> </xs:schema> </types> <message name="AddMessage"> <part name="parameter" element="ns:Add"/> </message> <message name="AddResponseMessage"> <part name="parameter" element="ns:AddResponse"/> </message> <message name="SubtractMessage"> <part name="parameter" element="ns:Subtract"/> </message> <message name="SubtractResponseMessage"> <part name="parameter" element="ns:SubtractResponse"/> </message> <portType name="MathInterface"> <operation name="Add"> <input message="y:AddMessage"/> <output message="y:AddResponseMessage"/> </operation> <operation name="Subtract"> <input message="y:SubtractMessage"/> <output message="y:SubtractResponseMessage"/> </operation> </portType> <binding name="MathSoapHttpBinding" type="y:MathInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="Add"> <soap:operation soapAction="http://example.org/math/#Add"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> <operation name="Subtract"> <soap:operation soapAction="http://example.org/math/#Subtract"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="MathService"> <port name="MathEndpoint" binding="y:MathSoapHttpBinding"> <soap:address location="http://localhost/math/math.asmx"/> </port> </service> </definitions>
  • 28. As seen in JDeveloper
  • 29. Copyright - http://soatraining.hpage.com 29 SOAP  SOAP stands for Simple Object Access Protocol  SOAP is a communication protocol  SOAP is for communication between applications  SOAP is a format for sending messages  SOAP communicates via Internet  SOAP is platform independent  SOAP is language independent  SOAP is based on XML  Relies on other Application Layer protocols (most notably Remote Procedure Call (RPC) and HTTP) for message negotiation and transmission.  SOAP is a W3C recommendation
  • 30. Copyright - http://soatraining.hpage.com 30 SOAP Message Structure SOAP Envelope - encloses payload SOAP Header - encloses Headers SOAP body contains SOAP message name and data
  • 33. Copyright - http://soatraining.hpage.com 33 UDDI  UDDI stands for Universal Description, Discovery and Integration.  The UDDI specification enables businesses to quickly, easily, and dynamically find and transact with one another.  UDDI enables a business to 1. Describe its business and its services, 2. Discover other businesses that offer desired services 3. Integrate with these other businesses.
  • 34. Copyright - http://soatraining.hpage.com 34 UDDI Data Model The information that makes up a UDDI registry consists of instances of four core data structure types, the businessEntity, the businessService, the bindingTemplate and the tModel, together with instances of additional data structure types defined in the UDDI API Schema. Each of the core data structure types is used to express specific types of data, arranged in the relationship shown
  • 35. Why do we need a registry  The ability to register, discover, and govern Web services is an essential requirement for any Service Oriented Architecture (SOA) implementation.  A highly available environment contains multiple application server nodes, multiple instances, and multiple processes. Regardless of where the services will be deployed they have to be flexible enough to run anywhere without requiring changes to the actual process implementation.  This need may not be fully appreciated in the early stages of an SOA roll- out when dealing with a small number of services.  However, large organizations will typically need to support a large number of Web services, and as the number of services deployed grows to dozens or hundreds, centralized facilities for access and control of service metadata and artifacts becomes critical.  A service registry provides these capabilities and is a key infrastructural component and cornerstone for SOA deployments Copyright - http://soatraining.hpage.com 35
  • 36. Registry and UDDI  UDDI defines a framework to enable the establishment of service registries to provide distributed directory service to the producers and consumers of Web services. It includes a common set of SOAP-based APIs to support registration and advertisement of Web services by service producers, and to facilitate the searching and lookup of Web services by service consumers. Copyright - http://soatraining.hpage.com 36
  • 37. REST  Short for REpresentational State Transfer, REST is not a specification, but rather an architecture  Asserts that all resources should be directly addressable by an URL  In simple words, instead of HTTP POST, we use HTTP GET, pass the parameters over a URL and get the results !  Eg.: http://www.webservicex.net/stockquote.asmx/GetQuote? symbol=ORCL  Some purist may say REST is not Web services, but in my opinion, its nothing short of it either.  True, you’re not sending an XML request, but most of the time you are getting an XML response.
  • 38. Challenge  We want to create a WSDL file that defines an operation called CreateStudent. CreateStudent should be a request response operation and should take a Student object as input and return the Student ID as output. Student object stores the student name and marks  Solution to this challenge is available in CreateAWsdlFromScratch.doc. Code is under Project1.zip
  • 39. Copyright - http://soatraining.hpage.com 39 Resources  People and companies develop web services. Some of them are free too   http://www.webservicex.net/stockquote.asmx  Links to lotsa web services on one page ! http://www.actionscript.org/forums/showthread.ph p3?t=70742
  • 40. Copyright - http://soatraining.hpage.com 40 References  WSDL Tutorial - http://www.w3schools.com/WSDL/default.asp  SOAP Tutorial http://www.w3schools.com/soap/default.asp  More on WSDL elements http://www2.roguewave.com/support/docs/leif /leif/html/leifug/B-6.html
  • 41. Extra Slides Copyright - http://soatraining.hpage.com 41
  • 42. Open System Interconnection Reference Model  http://en.wikipedia.org/wiki/OSI_model  It is an abstract description for layered communications and computer network protocol design Copyright - http://soatraining.hpage.com 42
  • 43. Examples of Protocols in each layer Copyright - http://soatraining.hpage.com 43
  • 44. More WSDL Examples  WSDL containing multiple portType  The following is a variation of the Math.wsdl where we want to have add and subtract operations for decimal and binary numbers  The designers felt it best to create two different port types to segregate the interfaces (although, technically, we can combine the operations in a single interface)  For brevity, subtract operation is not shown.
  • 45. Copyright - http://soatraining.hpage.com 45 Multiple portTypes <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:y="http://example.org/math/" xmlns:ns="http://example.org/math/types/" targetNamespace="http://example.org/math/" > … <portType name="MathInterface"> <operation name="Add"> <input message="y:AddMessage"/> <output message="y:AddResponseMessage"/> </operation> </portType> <portType name="MathBinaryInterface"> <operation name="AddBinary"> <input message="y:AddBinaryMessage"/> <output message="y:AddBinaryResponseMessage"/> </operation> </portType> <binding name="MathSoapHttpBinding" type="y:MathInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="Add"> <soap:operation soapAction="http://example.org/math/#Add"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <binding name="MathBinarySoapHttpBinding" type="y:MathBinaryInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="AddBinary"> <soap:operation soapAction="http://example.org/math/#AddBinary"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="MathService"> <port name="MathEndpoint" binding="y:MathSoapHttpBinding"> <soap:address location="http://localhost/math/math.asmx"/> </port> <port name="MathEndpoint" binding="y:MathBinarySoapHttpBinding"> <soap:address location="http://localhost/math/math.asmx"/> </port> </service> </definitions>
  • 46. More WSDL Examples  Following WSDL contains multiple bindings for a portType  This allows to accept messages from different protocols like SOAP over HTTP, SOAP1.2 over HTTP, HTTP Get and HTTP Post  For brevity, subtract operation is not shown
  • 47. Copyright - http://soatraining.hpage.com 47Copyright - http://soatraining.hpage.com 47 <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:y="http://example.org/math/" xmlns:ns="http://example.org/math/types/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://example.org/math/"> … <portType name="MathInterface"> <operation name="Add"> <input message="y:AddMessage"/> <output message="y:AddResponseMessage"/> </operation> </portType> <binding name="MathSoapHttpBinding“ type="y:MathInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="Add"> <soap:operation soapAction="http://example.org/math/#Add"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <binding name="MathSoap12HttpBinding" type="y:MathInterface"> <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="Add"> <soap12:operation soapAction="http://example.org/math/#Add"/> <input> <soap12:body use="literal"/> </input> <output> <soap12:body use="literal"/> </output> </operation> </binding> <binding name="MathHttpGetBinding" type="y:MathInterface"> <http:binding verb="GET"/> <operation name="Add"> <http:operation location="/Add"/> <input> <http:urlEncoded/> </input> <output> <mime:mimeXml part="Body"/> </output> </operation> </binding> <binding name="MathHttpPostBinding" type="y:MathInterface"> <http:binding verb="POST"/> <operation name="Add"> <http:operation location="/Add"/> <input> <mime:content type="application/x-www-form-urlencoded"/> </input> <output> <mime:mimeXml part="Body"/> </output> </operation> </binding> <service name="MathService"> <port name="MathEndpoint" binding="y:MathSoapHttpBinding"> <soap:address location="http://localhost/math/math.asmx"/> </port> <port name="MathEndpoint" binding="y:MathBinarySoapHttpBinding"> <soap:address location="http://localhost/math/math.asmx"/> </port> </service> </definitions>

Editor's Notes

  1. A business service is a “logical encapsulation of business function”. In simple terms, it means that you wrap up everything you have to do to make a particular business function happen and give that rolled-up something a name and call it a business service. Messaging Protocols – The messaging protocols are standards-based and are platform independent. These enable one service to call another one - SOAP over HTTP, JMS Programming standards – The underlying programming standards help create services that conform to a predefined structure. This means it is possible to figure out what the service does in a platform and language independent way. - WSDL Network registration – The services can be searched in a common way - UDDI
  2. To understand how web services work, lets take an example. Scenario – A Citibank customer wants to pay his Vodafone phone bill through the bank’s website. Solution First, the Vodafone IT team would create a service that allows one to pay their bills through a web service. This service may be implemented in any way they please, using ADF, POJO, PL/SQL etc. However, the service needs to expose its interface according to WSDL specification In order to facilitate clients to be able to find this service, the Vodafone team publishes this WSDL to a web services directory. The directory is capable of storing different kind of information like the request and response messages, version, publisher details, type of service etc. All this information is structured in a standard way so that interested parties can search or discover them. This common format is the UDDI Citibank IT team, which is developing their website, and want to provide this service to their customer, finds the service developed by Vodafone team. This completes the setup. When a customer chooses to pay his bill, the required information is sent to the Vodafone Bill Payment web service. This communication is done using a SOAP message. As SOAP can work over HTTP, which is the most used protocol on the Internet, this invocation can utilize the power of Internet The Vodafone Bill Payment service acknowledges success or failure of the transaction The above example brings out the interplay of: Messaging protocols - SOAP Programming standards – Interface based on WSDL standard Network registration – Information stored as per UDDI standard Note: A Public Registry, while a really cool concept, didn’t really take off as expected. However, the concept itself found takers at organization level and typically an organization that takes its SOA seriously will have a registry setup.
  3. 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.
  4. The W3C WSDL Specification defines four message patterns to support four types of operations, as follows: Request-response One-way Notification Solicit-response Message Patterns and Asynchronicity The request-response and the solicit-response patterns are generally synchronous, as their usage usually assumes that the requestor will receive an immediate response. The one-way and the notification patterns are inherently asynchronous in that the requestor expects no response. While one of the strengths of WSDL is that it allows any mix of message patterns and transports in a single service, it is important to be aware that the behavior of a service is tied to the type of transport being used. For example, an asynchronous service will not behave asynchronously if it is sent using a synchronous transport, such as HTTP. This is because HTTP requires a response as a receipt. For this reason, it may be wise to build one-way and notification messages asynchronously even though no response is required, in order to avoid having the client block for a transport receipt
  5. In this example the port &amp;quot;glossaryTerms&amp;quot; defines a one-way operation called &amp;quot;setTerm&amp;quot;. The &amp;quot;setTerm&amp;quot; operation allows input of new glossary terms messages using a &amp;quot;newTermValues&amp;quot; message with the input parameters &amp;quot;term&amp;quot; and &amp;quot;value&amp;quot;. However, no output is defined for the operation.
  6. In this example the port &amp;quot;glossaryTerms&amp;quot; defines a request-response operation called &amp;quot;getTerm&amp;quot;. The &amp;quot;getTerm&amp;quot; operation requires an input message called &amp;quot;getTermRequest&amp;quot; with a parameter called &amp;quot;term&amp;quot;, and will return an output message called &amp;quot;getTermResponse&amp;quot; with a parameter called &amp;quot;value&amp;quot;.
  7. The binding element has two attributes - the name attribute and the type attribute. The name attribute (you can use any name you want) defines the name of the binding, and the type attribute points to the port for the binding, in this case the &amp;quot;glossaryTerms&amp;quot; port. he sample below shows the basic outline of a binding for a SOAP message: &amp;lt;binding name=&amp;quot;BindingName&amp;quot; type=&amp;quot;PortTypeRef&amp;quot;&amp;gt; &amp;lt;soap:binding style=&amp;quot;rpc|document&amp;quot; transport=&amp;quot;http://schemas.xmlsoap.org/soap/http&amp;quot;/&amp;gt; &amp;lt;operation name=&amp;quot;OperationName&amp;quot;&amp;gt; &amp;lt;soap:operation soapAction=&amp;quot;ActionValue&amp;quot;/&amp;gt; &amp;lt;input&amp;gt; &amp;lt;soap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;TargetNamespace&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt; &amp;lt;/input&amp;gt; &amp;lt;output&amp;gt; &amp;lt;soap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;TargetNamespace&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt; &amp;lt;/output&amp;gt; &amp;lt;/operation&amp;gt; &amp;lt;/binding&amp;gt; The soap:binding element has two attributes - the style attribute and the transport attribute. The style attribute can be &amp;quot;rpc&amp;quot; or &amp;quot;document&amp;quot;. In the slide, we use document. The transport attribute defines the SOAP protocol to use. In the slide we use HTTP. The operation element defines each operation that the port exposes. The name sets the name of the operation this binding applies to. This name must match the name of an operation declared within the portType referenced in type attribute of binding. For each operation the corresponding SOAP action has to be defined. You must also specify how the input and output are encoded. In this case we use &amp;quot;literal&amp;quot;.
  8. A service element describes a Web service as a collection of port elements. A port element defines a specific network address for a binding. The sample below shows the basic outline of a service that supplies an address for a SOAP binding: &amp;lt;service name=&amp;quot;ServiceName&amp;quot;&amp;gt; &amp;lt;port name=&amp;quot;PortName&amp;quot; binding=&amp;quot;BindingRef&amp;quot;&amp;gt; &amp;lt;soap:address location=&amp;quot;URL&amp;quot;/&amp;gt; &amp;lt;/port&amp;gt; &amp;lt;/service&amp;gt; The ServiceName sets the name of the service. The PortName sets the name of the specific address. The BindingRef refers to the name of a binding element. The BindingRef must be namespace qualified if the targetNamespace for the WSDL definitions element is not the same as the default namespace.
  9. SOAP Overview A SOAP message is an ordinary XML document containing the following elements: An Envelope element that identifies the XML document as a SOAP message A Header element that contains header information A Body element that contains call and response information A Fault element containing errors and status information
  10. UDDI defines a framework to enable the establishment of service registries to provide distributed directory service to the producers and consumers of Web services. It includes a common set of SOAP-based APIs to support registration and advertisement of Web services by service producers, and to facilitate the searching and lookup of Web services by service consumers.
  11. The information that makes up a UDDI registry consists of instances of four core data structure types, the businessEntity, the businessService, the bindingTemplate and the tModel, together with instances of additional data structure types defined in the UDDI API Schema. Each of the core data structure types is used to express specific types of data, arranged in the relationship shown