SlideShare a Scribd company logo
1 of 46
Presented By,
S.ANITHA
AP/MCA
VIIMS
Contents
1 Introduction
2 SOAP
3 WSDL
4 UDDI
Web Services?
Any piece of s/w that makes itself
available over the internet and uses
XML messaging system.
Due to XML communication, WS is
OS or pgming language independent.
Eg:- Java can talk with Perl; Windows
app can talk with Unix app.
Web Services
Services available on web
Examples:
1. Social media web service:
communicate with your friends
2. E-commerce webservice :
online purchasing
Web Site vs Web Services
Web site  human consumption
WS  application consumption
Why Web Services?
App Server1 App Server2
m/c1 m/c2
X
(jar)
getProducts()
MVC
Client calls getProducts()
getProducts()
Why Web Services?
getProducts() in Appserver2 can’t
call getProducts() in AppServer1.
Solution:
Make the getProducts() as jar file
& put it in AppServer2.
Why Web Services?
Problems:
Db difference in AppServer2
Modifications in getProducts()
in AppServer1 can’t reflect in
AppServer2. (so repack another
jar for modified getProductsI())
Why Web Services?
App Server1 App Server2
m/c1 m/c2
direct call using
WS
getProducts()
MVC
Client calls getProducts()
getProducts()
Why Web Services?
+ve: interoperable
 Language independent
java ws can invoke .Net WS
H/W independent
Ws running in Windows can call
Unix WS
Why Web Services?
+ve: interoperable
Eg:-
Google Maps In Chrome under
windows
Google Maps in IE under
Redhat Linux
Building Blocks
Web services Building Blocks
SOAP (Simple Object Access Protocol)
XML based transport protocol
WSDL (Web Services Description Language)
XML based
To describe WS
UDDI(Universal Description, Discovery,
and Integration)
.NET based
To discover WS
SOAP (Simple Object Access Protocol)
SOAP = XML + HTTP
XML  to encode & decode data
HTTP  to transport data
Def:-
XML based communication protocol which is
language & platform independent.
Why SOAP?
DCOM & CORBA objects communicate
using RPC.
-ve of RPC:
Blocked by firewalls & proxy servers.
+ve of SOAP:-
No such blocking, moreover by using SOAP,
applications running on different OS, different
technologies, different PL can communicate
with each other.
SOAP Elements
1. Envelope Element (required)
2. Header Element (opt)
3.Body Element (required)
4.Fault Element (opt)
SOAP Elements
1. Envelope element identities the XML
as a SOAP message.
2. Header element contains WS std
info like authentication, pay load.
3. Body element contains the actual
information, call & response
information.
4. Fault element provides error
information occurred while
processing the msg.
SOAP Message Skeleton
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-
encoding">
<soap:Header>
...
</soap:Header>
<soap:Body>
...
<soap:Fault>
...
</soap:Fault>
</soap:Body>
</soap:Envelope>
SOAP HTTP Binding
Request
Response
An HTTP client connects to an
HTTP server using TCP.
HTTP
Client
HTTP
Server
SOAP HTTP Binding
After establishing a connection, the client
can send an HTTP request message to
the server:
POST /item HTTP/1.1
Host: 189.123.255.239
Content-Type: text/plain
Content-Length: 200
SOAP HTTP Binding
The server then processes the request
and sends an HTTP response back to the
client.
The response contains a status code that
indicates the status of the request:
200 OK  status code
Content-Type: text/plain
Content-Length: 200
Why HTTP for SOAP?
HTTP is already a widely implemented, and well
understood, protocol.
SOAP messages are one-way, instead of two-way.
one from the "client" to the "server“ and one from the
"server" back to the "client”. But SOAP specification
also says that when a request/response protocol, such
as HTTP, is used, these two messages can be
combined in the request/response of the protocol.
Most firewalls are already configured to work with
HTTP.
HTTP makes it easy to build in security, with Secure
Sockets Layer (SSL)
WSDL
WSDL (Web Services Description Language)
• WSDL is an XML document to describe
web services and how to access web
services
A client program connecting to a web
service can read the WSDL to determine
what functions are available on the
server.
The client can then use SOAP to actually
call one of the functions listed in the
WSDL.
WSDL Document Structure
Abstract
part What?
Ie tell
about WS
How?
Ways to
access WS
Location
of WS
Definition Element
 root element of all WSDL documents
 Associates WS with its namespaces.
 Defines one or more WS.
contains all the service elements described
here.
• Types to define datatypes used by
WS using XSD.
• Message  piece of information
exchanged between C/S.
WSDL (Web Services Description Language)
• Operation  actions which are
supported by WS.
• PortType  collection of operations
• Binding  links abstract section with
actual section or concrete section.
• Port endpoint defined in terms of URL
• Service  how to consume WS?
Collection of related end pts.
Definition Element
<definitions name=“MyService“
targetNamespace="http://www.mysite.com/myservice.wsdl"
xmlns=http://schemas.xmlsoap.org/wsdl/
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/
xmlns:tns="http://www.mysite.com/myservice.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 name: optional attribute describes overall
service.
Definition Element
targetNamespace  unique logical namespace
for WS.
xmlns  default WSDL namespace which
contains <definition>, <message> …
xmlns:tns  optional attribute contains same
value as targetNamespace.
Xmlns:soap & xmlns:xsd  std namespace for
SOAP information and data types.
Types Element
To define datatypes used by WS using XSD.
<types>
<schema targetNamespace
="http://www.mysite.com/myservice.wsdl"
xmlns="http://www.w3.org/2000/10/XMLSchema">
<element name=“MyRequest">
</element>
</schema>
</types>
User defined schema
Std schema
Message Element
Definition element contains one or more message
elements.
<message name="getMyInput">
<part name="term" type="xs:string"/>
</message>
<message name="getMyOutput">
<part name="value" type="xs:string"/>
</message>
 Each msg element can contain any no of part
child elements.
2 message elements (1- request, 2-
response)
PortType Element
PortType element contains one or more operation
elements.
portType  class or I/f
Operation  method
<portType name=“MyServicePortType">
<operation name=“MyMethod">
<input message=“tns:getMyInput"/>
<output message=" tns:getMyOutput"/>
</operation>
</portType>
Binding Element
Communication protocol used by WS (SOAP)
Service Element
• Web service clients can learn the following from
the service element:
– where to access the service,
– through which port to access the web service, and
– how the communication messages are defined.
• documentation element  to provide human-
readable documentation.
Service Element
<service name=“MyService">
<documentation>WSDL File for MyService</documentation>
<port name=“MyServicePort” binding="tns:MyServiceBinding“>
<soap:address
location="http://www.mysite.com/MyService/">
</port>
</service>
Example pgm: combine all elements code
UDDI
UDDI (Universal Description, Discovery, and Integration)
• UDDI is platform independent registry in
which business can publish their services &
also it provides mechanism to locate web
services
By OASIS (Advancing Open Standard for
Information Society)
UDDI provides publication & discovery of WS
which are key components of SOA.
UDDI Basics
Public UDDI registries are hosted by
companies such as IBM, Microsoft.
DNS Vs UDDI
DNS (nameIP address) is a static DB.
Where as UDDI provides information on how
to find & invoke WS.
GUID (Globally Unique Identifiers)
to uniquely identify the resources in each
registry.
3 Levels of Information in UDDI
White Pages  Companies general information
such as Name, Address, Contact Number.
Yellow Pages Looking up companies by their
kind of services.
Green Pages Provides information about how
to interact with companies web services.
UDDI Structure
UDDI provides 4 types of information.
1. Business Information
2. Service Information
3. Binding Information
4. Service Specification
UDDI Structure
Business Entity
Business Service
Business Service
Binding Template
Binding Template
Binding Template
Binding Template
tModel
tModel
tModel
tModel
UDDI Structure
1.Business Information (abt org,
Group of ppl who register their
services in registry)
Provided by BusinessEntity
Element.
Supports white pages & yellow
pages.
This element is top level
information manager.
UDDI Structure
2. Service Information (Resources
provided by business)
Provided by BusinessService
Element.
Supports green pages.
This element is top level
information manager.
UDDI Structure
3. Binding Information (info abt how to
bind & invoke WS)
Provided by BindingTemplate
Element.
BindingTemplate element is within
BindingService element.
UDDI Structure
4. Service Specification
Enclosed within each
BIndingTemplate Element.
tModel elements (Technical
Models)
tModel  pointer to WDSL file.

More Related Content

What's hot

Java Web Services [3/5]: WSDL, WADL and UDDI
Java Web Services [3/5]: WSDL, WADL and UDDIJava Web Services [3/5]: WSDL, WADL and UDDI
Java Web Services [3/5]: WSDL, WADL and UDDIIMC Institute
 
Introduction to SOAP/WSDL Web Services and RESTful Web Services
Introduction to SOAP/WSDL Web Services and RESTful Web ServicesIntroduction to SOAP/WSDL Web Services and RESTful Web Services
Introduction to SOAP/WSDL Web Services and RESTful Web Servicesecosio GmbH
 
WebServices SOAP WSDL and UDDI
WebServices SOAP WSDL and UDDIWebServices SOAP WSDL and UDDI
WebServices SOAP WSDL and UDDIRajkattamuri
 
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...ecosio GmbH
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshSiddhesh Bhobe
 
Web service- Guest Lecture at National Wokshop
Web service- Guest Lecture at National WokshopWeb service- Guest Lecture at National Wokshop
Web service- Guest Lecture at National WokshopNishikant Taksande
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservicesGagandeep Singh
 
Java Web Services [4/5]: Java API for XML Web Services
Java Web Services [4/5]: Java API for XML Web ServicesJava Web Services [4/5]: Java API for XML Web Services
Java Web Services [4/5]: Java API for XML Web ServicesIMC Institute
 
Java Web Services [2/5]: Introduction to SOAP
Java Web Services [2/5]: Introduction to SOAPJava Web Services [2/5]: Introduction to SOAP
Java Web Services [2/5]: Introduction to SOAPIMC Institute
 
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
 
Java web services using JAX-WS
Java web services using JAX-WSJava web services using JAX-WS
Java web services using JAX-WSIndicThreads
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-servicesAravindharamanan S
 
Web Services - A brief overview
Web Services -  A brief overviewWeb Services -  A brief overview
Web Services - A brief overviewRaveendra Bhat
 
WS-Addressing: Enabling Transport-Neutral Message Addressing and Correlation
WS-Addressing: Enabling Transport-Neutral Message Addressing and CorrelationWS-Addressing: Enabling Transport-Neutral Message Addressing and Correlation
WS-Addressing: Enabling Transport-Neutral Message Addressing and CorrelationJeffrey Hasan
 

What's hot (20)

Java Web Services [3/5]: WSDL, WADL and UDDI
Java Web Services [3/5]: WSDL, WADL and UDDIJava Web Services [3/5]: WSDL, WADL and UDDI
Java Web Services [3/5]: WSDL, WADL and UDDI
 
Introduction to SOAP/WSDL Web Services and RESTful Web Services
Introduction to SOAP/WSDL Web Services and RESTful Web ServicesIntroduction to SOAP/WSDL Web Services and RESTful Web Services
Introduction to SOAP/WSDL Web Services and RESTful Web Services
 
WebServices SOAP WSDL and UDDI
WebServices SOAP WSDL and UDDIWebServices SOAP WSDL and UDDI
WebServices SOAP WSDL and UDDI
 
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
Introduction to Service Oriented Architectures, SOAP/WSDL Web Services and RE...
 
Introduction To Dot Net Siddhesh
Introduction To Dot Net SiddheshIntroduction To Dot Net Siddhesh
Introduction To Dot Net Siddhesh
 
Wsdl
WsdlWsdl
Wsdl
 
Web service- Guest Lecture at National Wokshop
Web service- Guest Lecture at National WokshopWeb service- Guest Lecture at National Wokshop
Web service- Guest Lecture at National Wokshop
 
KO on Web Services
KO on Web ServicesKO on Web Services
KO on Web Services
 
Web services
Web servicesWeb services
Web services
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
 
Developmeant and deployment of webservice
Developmeant and deployment of webserviceDevelopmeant and deployment of webservice
Developmeant and deployment of webservice
 
SOAP-based Web Services
SOAP-based Web ServicesSOAP-based Web Services
SOAP-based Web Services
 
Java Web Services [4/5]: Java API for XML Web Services
Java Web Services [4/5]: Java API for XML Web ServicesJava Web Services [4/5]: Java API for XML Web Services
Java Web Services [4/5]: Java API for XML Web Services
 
Java Web Services [2/5]: Introduction to SOAP
Java Web Services [2/5]: Introduction to SOAPJava Web Services [2/5]: Introduction to SOAP
Java Web Services [2/5]: Introduction to SOAP
 
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
 
Java web services using JAX-WS
Java web services using JAX-WSJava web services using JAX-WS
Java web services using JAX-WS
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-services
 
Webservices
WebservicesWebservices
Webservices
 
Web Services - A brief overview
Web Services -  A brief overviewWeb Services -  A brief overview
Web Services - A brief overview
 
WS-Addressing: Enabling Transport-Neutral Message Addressing and Correlation
WS-Addressing: Enabling Transport-Neutral Message Addressing and CorrelationWS-Addressing: Enabling Transport-Neutral Message Addressing and Correlation
WS-Addressing: Enabling Transport-Neutral Message Addressing and Correlation
 

Similar to Web services overview

Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Servicesphanleson
 
Web Services
Web ServicesWeb Services
Web ServicesF K
 
Web services101
Web services101Web services101
Web services101chaos41
 
Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)Peter R. Egli
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxssuser403d87
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqmanguesteb791b
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and developmentishmecse13
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Conceptspasam suresh
 
Web services
Web servicesWeb services
Web servicesaspnet123
 
Ogsi protocol perspective
Ogsi protocol perspectiveOgsi protocol perspective
Ogsi protocol perspectivePooja Dixit
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaJignesh Aakoliya
 

Similar to Web services overview (20)

Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Services
 
Web Service Basics and NWS Setup
Web Service  Basics and NWS SetupWeb Service  Basics and NWS Setup
Web Service Basics and NWS Setup
 
Web Services
Web ServicesWeb Services
Web Services
 
Web services101
Web services101Web services101
Web services101
 
Web services SOAP Notes
Web services SOAP NotesWeb services SOAP Notes
Web services SOAP Notes
 
Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)
 
Bespoke Digital Media - Web
Bespoke Digital Media - Web Bespoke Digital Media - Web
Bespoke Digital Media - Web
 
Wsdl1
Wsdl1Wsdl1
Wsdl1
 
Web services
Web servicesWeb services
Web services
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Unit 5 WEB TECHNOLOGIES
Unit 5 WEB TECHNOLOGIES Unit 5 WEB TECHNOLOGIES
Unit 5 WEB TECHNOLOGIES
 
Web services
Web servicesWeb services
Web services
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
 
Xml.ppt
Xml.pptXml.ppt
Xml.ppt
 
Web services Concepts
Web services ConceptsWeb services Concepts
Web services Concepts
 
Web services
Web servicesWeb services
Web services
 
Ogsi protocol perspective
Ogsi protocol perspectiveOgsi protocol perspective
Ogsi protocol perspective
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
 
Webservices
WebservicesWebservices
Webservices
 

More from SRM Institute of Science & Technology, Tiruchirappalli (7)

Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Boolen function representation
Boolen function representationBoolen function representation
Boolen function representation
 
Octal to Hexadecimal and Hexadecimal to Octal
Octal to Hexadecimal  and Hexadecimal to OctalOctal to Hexadecimal  and Hexadecimal to Octal
Octal to Hexadecimal and Hexadecimal to Octal
 
Hexadecimal to binary and binary to hexadecimal
Hexadecimal to binary and binary to hexadecimalHexadecimal to binary and binary to hexadecimal
Hexadecimal to binary and binary to hexadecimal
 
Any other numbering system to decimal.docx
Any other numbering system to decimal.docxAny other numbering system to decimal.docx
Any other numbering system to decimal.docx
 
Core java
Core javaCore java
Core java
 
Core java Essentials
Core java EssentialsCore java Essentials
Core java Essentials
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

Web services overview

  • 3. Web Services? Any piece of s/w that makes itself available over the internet and uses XML messaging system. Due to XML communication, WS is OS or pgming language independent. Eg:- Java can talk with Perl; Windows app can talk with Unix app.
  • 4. Web Services Services available on web Examples: 1. Social media web service: communicate with your friends 2. E-commerce webservice : online purchasing
  • 5. Web Site vs Web Services Web site  human consumption WS  application consumption
  • 6. Why Web Services? App Server1 App Server2 m/c1 m/c2 X (jar) getProducts() MVC Client calls getProducts() getProducts()
  • 7. Why Web Services? getProducts() in Appserver2 can’t call getProducts() in AppServer1. Solution: Make the getProducts() as jar file & put it in AppServer2.
  • 8. Why Web Services? Problems: Db difference in AppServer2 Modifications in getProducts() in AppServer1 can’t reflect in AppServer2. (so repack another jar for modified getProductsI())
  • 9. Why Web Services? App Server1 App Server2 m/c1 m/c2 direct call using WS getProducts() MVC Client calls getProducts() getProducts()
  • 10. Why Web Services? +ve: interoperable  Language independent java ws can invoke .Net WS H/W independent Ws running in Windows can call Unix WS
  • 11. Why Web Services? +ve: interoperable Eg:- Google Maps In Chrome under windows Google Maps in IE under Redhat Linux
  • 13. Web services Building Blocks SOAP (Simple Object Access Protocol) XML based transport protocol WSDL (Web Services Description Language) XML based To describe WS UDDI(Universal Description, Discovery, and Integration) .NET based To discover WS
  • 14. SOAP (Simple Object Access Protocol) SOAP = XML + HTTP XML  to encode & decode data HTTP  to transport data Def:- XML based communication protocol which is language & platform independent.
  • 15. Why SOAP? DCOM & CORBA objects communicate using RPC. -ve of RPC: Blocked by firewalls & proxy servers. +ve of SOAP:- No such blocking, moreover by using SOAP, applications running on different OS, different technologies, different PL can communicate with each other.
  • 16. SOAP Elements 1. Envelope Element (required) 2. Header Element (opt) 3.Body Element (required) 4.Fault Element (opt)
  • 17. SOAP Elements 1. Envelope element identities the XML as a SOAP message. 2. Header element contains WS std info like authentication, pay load. 3. Body element contains the actual information, call & response information. 4. Fault element provides error information occurred while processing the msg.
  • 18. SOAP Message Skeleton <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap- encoding"> <soap:Header> ... </soap:Header> <soap:Body> ... <soap:Fault> ... </soap:Fault> </soap:Body> </soap:Envelope>
  • 19. SOAP HTTP Binding Request Response An HTTP client connects to an HTTP server using TCP. HTTP Client HTTP Server
  • 20. SOAP HTTP Binding After establishing a connection, the client can send an HTTP request message to the server: POST /item HTTP/1.1 Host: 189.123.255.239 Content-Type: text/plain Content-Length: 200
  • 21. SOAP HTTP Binding The server then processes the request and sends an HTTP response back to the client. The response contains a status code that indicates the status of the request: 200 OK  status code Content-Type: text/plain Content-Length: 200
  • 22. Why HTTP for SOAP? HTTP is already a widely implemented, and well understood, protocol. SOAP messages are one-way, instead of two-way. one from the "client" to the "server“ and one from the "server" back to the "client”. But SOAP specification also says that when a request/response protocol, such as HTTP, is used, these two messages can be combined in the request/response of the protocol. Most firewalls are already configured to work with HTTP. HTTP makes it easy to build in security, with Secure Sockets Layer (SSL)
  • 23. WSDL
  • 24. WSDL (Web Services Description Language) • WSDL is an XML document to describe web services and how to access web services A client program connecting to a web service can read the WSDL to determine what functions are available on the server. The client can then use SOAP to actually call one of the functions listed in the WSDL.
  • 25. WSDL Document Structure Abstract part What? Ie tell about WS How? Ways to access WS Location of WS
  • 26.
  • 27. Definition Element  root element of all WSDL documents  Associates WS with its namespaces.  Defines one or more WS. contains all the service elements described here. • Types to define datatypes used by WS using XSD. • Message  piece of information exchanged between C/S.
  • 28. WSDL (Web Services Description Language) • Operation  actions which are supported by WS. • PortType  collection of operations • Binding  links abstract section with actual section or concrete section. • Port endpoint defined in terms of URL • Service  how to consume WS? Collection of related end pts.
  • 30. Definition Element targetNamespace  unique logical namespace for WS. xmlns  default WSDL namespace which contains <definition>, <message> … xmlns:tns  optional attribute contains same value as targetNamespace. Xmlns:soap & xmlns:xsd  std namespace for SOAP information and data types.
  • 31. Types Element To define datatypes used by WS using XSD. <types> <schema targetNamespace ="http://www.mysite.com/myservice.wsdl" xmlns="http://www.w3.org/2000/10/XMLSchema"> <element name=“MyRequest"> </element> </schema> </types> User defined schema Std schema
  • 32. Message Element Definition element contains one or more message elements. <message name="getMyInput"> <part name="term" type="xs:string"/> </message> <message name="getMyOutput"> <part name="value" type="xs:string"/> </message>  Each msg element can contain any no of part child elements. 2 message elements (1- request, 2- response)
  • 33. PortType Element PortType element contains one or more operation elements. portType  class or I/f Operation  method <portType name=“MyServicePortType"> <operation name=“MyMethod"> <input message=“tns:getMyInput"/> <output message=" tns:getMyOutput"/> </operation> </portType>
  • 35. Service Element • Web service clients can learn the following from the service element: – where to access the service, – through which port to access the web service, and – how the communication messages are defined. • documentation element  to provide human- readable documentation.
  • 36. Service Element <service name=“MyService"> <documentation>WSDL File for MyService</documentation> <port name=“MyServicePort” binding="tns:MyServiceBinding“> <soap:address location="http://www.mysite.com/MyService/"> </port> </service> Example pgm: combine all elements code
  • 37. UDDI
  • 38. UDDI (Universal Description, Discovery, and Integration) • UDDI is platform independent registry in which business can publish their services & also it provides mechanism to locate web services By OASIS (Advancing Open Standard for Information Society) UDDI provides publication & discovery of WS which are key components of SOA.
  • 39. UDDI Basics Public UDDI registries are hosted by companies such as IBM, Microsoft. DNS Vs UDDI DNS (nameIP address) is a static DB. Where as UDDI provides information on how to find & invoke WS. GUID (Globally Unique Identifiers) to uniquely identify the resources in each registry.
  • 40. 3 Levels of Information in UDDI White Pages  Companies general information such as Name, Address, Contact Number. Yellow Pages Looking up companies by their kind of services. Green Pages Provides information about how to interact with companies web services.
  • 41. UDDI Structure UDDI provides 4 types of information. 1. Business Information 2. Service Information 3. Binding Information 4. Service Specification
  • 42. UDDI Structure Business Entity Business Service Business Service Binding Template Binding Template Binding Template Binding Template tModel tModel tModel tModel
  • 43. UDDI Structure 1.Business Information (abt org, Group of ppl who register their services in registry) Provided by BusinessEntity Element. Supports white pages & yellow pages. This element is top level information manager.
  • 44. UDDI Structure 2. Service Information (Resources provided by business) Provided by BusinessService Element. Supports green pages. This element is top level information manager.
  • 45. UDDI Structure 3. Binding Information (info abt how to bind & invoke WS) Provided by BindingTemplate Element. BindingTemplate element is within BindingService element.
  • 46. UDDI Structure 4. Service Specification Enclosed within each BIndingTemplate Element. tModel elements (Technical Models) tModel  pointer to WDSL file.