SlideShare a Scribd company logo
Introductio
n to
  Web
Services
Web Services
• A Web service is a method of communication
  between two electronic devices over
  the World Wide Web
• In other words, a web service helps to convert
  your application into a web-based application.
Why web services?
• Your application can publish its function or
  message to the rest of the world.
WEB
               Services

REST Services               SOAP and WSDL



   Department of Information Science Engg
REST Services
• Relying on URIs and HTTP verbs
• Usage of 5 big HTTP verbs
  POST, HEAD, GET, PUT, DELETE
  Nothing more than CRUD concept of the Web
• Ex: Delicious APIs
  Delicious is a leading social bookmarking service
  Visit: http://www.peej.co.uk/articles/restfully-delicious.html
• Data exchange format
  XML, JASON or both
SOAP based services
• Simple Object Access Protocol
• Exclusively use XML as the data format to exchange info
  over HTTP.
• A service that needs to be used by another service needs
  to specify its usage through a “Service Description”.
• In this case, we use WSDL – Web Services Description
  Language
• Ex: Apache Axis, Apache CXF
• SOAP has nothing to do with SOA – Service Oriented
  Architecture
.
• A service is hosted on a “Discovery Service” in the internet.
• A client which wants to use this service will have to “discover”
 this service (similar to RMI) using the ‘Discovery Service’.
• Once the service is “discovered”, the client asks the service
 how it should be invoked. The service replies in WSDL format.

• The service is now invoked using SOAP. The client issues a
 ‘SOAP Request’.

• The service responds with a ‘SOAP Response’, which includes
 the result.
A SOAP message is an ordinary XML document
containing the following elements:
• Envelope - identifies the XML document as a SOAP message
    o Header - contains information about the request.
    o Body
         Message data - contains request and response information
           itself.
         Fault (optional) - containing errors and status information.
A SOAP request:
<?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:Body
xmlns:m="http://www.example.org/stock">
  <m:GetStockPrice>
    <m:StockName>IBM</m:StockName>
  </m:GetStockPrice>
</soap:Body>

</soap:Envelope>
The SOAP response:
<?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:Body
xmlns:m="http://www.example.org/stock"
>
  <m:GetStockPriceResponse>
    <m:Price>34.5</m:Price>
  </m:GetStockPriceResponse>
</soap:Body>

</soap:Envelope>
Web Services -  A brief overview
WSDL
• WSDL stands for Web Services Description Language
• It is an XML-based language that is used for
  describing the functionality offered by a Web service.
• WSDL file contains info about
   o   How the service can be called
   o   What parameter it expects
   o   What data structure it returns
   o   Which port the application uses
   o   Which protocol the web service uses (like https)
Need for stubs (similar to RMI)
What are stubs?
• A stub is a small program routine that substitutes for
  a longer program, possibly to be loaded later or that
  is located remotely.
• The stub accepts the request and then forwards it
  (through another program) to the remote procedure.
• When that procedure has completed its service, it
  returns the results or other status to the stub which
  passes it back to the program that made the request.
Web Services -  A brief overview
Comparision
REST services                     SOAP services
• Architectural style             • XML-based protocol
• Simply calls services via URL   • Invokes services by calling
  path                              RPC method
• Lightweight – not a lot of      • Rigid – type checking,
  extra xml markup                  adheres to a contract
• Easy to build – no toolkits     • Development tools – WSDL
  required                          Soap analyser tool, oXygen
                                    XML
Web Services -  A brief overview

More Related Content

PPTX
Soap web service
PDF
Web services
PPT
Java web services
PDF
Web Services
PDF
Web Services (SOAP, WSDL, UDDI)
PDF
Java web services using JAX-WS
PDF
Web Services Tutorial
PDF
Web service introduction
Soap web service
Web services
Java web services
Web Services
Web Services (SOAP, WSDL, UDDI)
Java web services using JAX-WS
Web Services Tutorial
Web service introduction

What's hot (20)

PPTX
Web services soap and rest by mandakini for TechGig
PPT
WebServices SOAP WSDL and UDDI
PPTX
Web Service
PDF
Introduction to SOAP/WSDL Web Services and RESTful Web Services
PDF
SOAP-based Web Services
PPTX
Web services SOAP
PDF
Java Web Services [1/5]: Introduction to Web Services
PPTX
WSDL in Mule Esb
PPT
Intro to web services
PDF
SOAP vs REST
PPT
Soap and Rest
PPTX
An Overview of Web Services: SOAP and REST
PDF
Web Services
PPTX
Soap and restful webservice
PDF
Java Web Services [3/5]: WSDL, WADL and UDDI
PPTX
Webservices Overview : XML RPC, SOAP and REST
PPT
Web Service Presentation
PPTX
PDF
Web Service Implementation Using ASP.NET
Web services soap and rest by mandakini for TechGig
WebServices SOAP WSDL and UDDI
Web Service
Introduction to SOAP/WSDL Web Services and RESTful Web Services
SOAP-based Web Services
Web services SOAP
Java Web Services [1/5]: Introduction to Web Services
WSDL in Mule Esb
Intro to web services
SOAP vs REST
Soap and Rest
An Overview of Web Services: SOAP and REST
Web Services
Soap and restful webservice
Java Web Services [3/5]: WSDL, WADL and UDDI
Webservices Overview : XML RPC, SOAP and REST
Web Service Presentation
Web Service Implementation Using ASP.NET
Ad

Viewers also liked (18)

PPTX
Web services - A Practical Approach
PPTX
Web Services - Architecture and SOAP (part 1)
PPT
JAX-WS Basics
PPTX
Web Services in the Real World
PDF
Java API for XML Web Services (JAX-WS)
PDF
Restful Web Services
PPTX
REST & RESTful Web Services
PPTX
Testing web services
PPTX
Metakortex Presentation
PPTX
Web Services and the Service-Oriented Architecture
PPT
Web Service Oriented Architecture
PPTX
Java power to the SOA developer (ODTUG Kaleidoscope 2010)
PDF
E-mail basics
DOCX
Web services SOAP Notes
PPTX
WS - SecurityPolicy
PPTX
WS - Security
PPTX
Ntg web services
PDF
Use of SOA and Web Services Technologies for EA Migration - Lessons Learned o...
Web services - A Practical Approach
Web Services - Architecture and SOAP (part 1)
JAX-WS Basics
Web Services in the Real World
Java API for XML Web Services (JAX-WS)
Restful Web Services
REST & RESTful Web Services
Testing web services
Metakortex Presentation
Web Services and the Service-Oriented Architecture
Web Service Oriented Architecture
Java power to the SOA developer (ODTUG Kaleidoscope 2010)
E-mail basics
Web services SOAP Notes
WS - SecurityPolicy
WS - Security
Ntg web services
Use of SOA and Web Services Technologies for EA Migration - Lessons Learned o...
Ad

Similar to Web Services - A brief overview (20)

PPTX
Introduction to WebServices
PPTX
WebServices Basic Overview
PPTX
Mule Webservices
PPTX
WebServices Basic Overview
PPTX
Introduction to WebServices
PPTX
WebServices introduction
PPT
Mule webservices in detail
DOCX
Rest vs soap
PPTX
Web service- Guest Lecture at National Wokshop
PPTX
Web services
PPT
Web Services - Lectures and architecture.ppt
PDF
Web services and Applications in Web Technology.pdf
PPTX
Web services
PPT
web services-May 25.ppt
PPTX
SOAP--Simple Object Access Protocol
PPT
Detailed information on webservice by websoles
PPT
Web services Tutorial /Websoles Strategic Digital Solutions
PPT
Best Web services tutorial | Websoles Strategic Digital Solutions
PPTX
Web Programming
Introduction to WebServices
WebServices Basic Overview
Mule Webservices
WebServices Basic Overview
Introduction to WebServices
WebServices introduction
Mule webservices in detail
Rest vs soap
Web service- Guest Lecture at National Wokshop
Web services
Web Services - Lectures and architecture.ppt
Web services and Applications in Web Technology.pdf
Web services
web services-May 25.ppt
SOAP--Simple Object Access Protocol
Detailed information on webservice by websoles
Web services Tutorial /Websoles Strategic Digital Solutions
Best Web services tutorial | Websoles Strategic Digital Solutions
Web Programming

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
cuic standard and advanced reporting.pdf
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Modernizing your data center with Dell and AMD
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
cuic standard and advanced reporting.pdf
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation_ Review paper, used for researhc scholars
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding

Web Services - A brief overview

  • 1. Introductio n to Web Services
  • 2. Web Services • A Web service is a method of communication between two electronic devices over the World Wide Web • In other words, a web service helps to convert your application into a web-based application.
  • 3. Why web services? • Your application can publish its function or message to the rest of the world.
  • 4. WEB Services REST Services SOAP and WSDL Department of Information Science Engg
  • 5. REST Services • Relying on URIs and HTTP verbs • Usage of 5 big HTTP verbs POST, HEAD, GET, PUT, DELETE Nothing more than CRUD concept of the Web • Ex: Delicious APIs Delicious is a leading social bookmarking service Visit: http://www.peej.co.uk/articles/restfully-delicious.html • Data exchange format XML, JASON or both
  • 6. SOAP based services • Simple Object Access Protocol • Exclusively use XML as the data format to exchange info over HTTP. • A service that needs to be used by another service needs to specify its usage through a “Service Description”. • In this case, we use WSDL – Web Services Description Language • Ex: Apache Axis, Apache CXF • SOAP has nothing to do with SOA – Service Oriented Architecture
  • 7. .
  • 8. • A service is hosted on a “Discovery Service” in the internet. • A client which wants to use this service will have to “discover” this service (similar to RMI) using the ‘Discovery Service’. • Once the service is “discovered”, the client asks the service how it should be invoked. The service replies in WSDL format. • The service is now invoked using SOAP. The client issues a ‘SOAP Request’. • The service responds with a ‘SOAP Response’, which includes the result.
  • 9. A SOAP message is an ordinary XML document containing the following elements: • Envelope - identifies the XML document as a SOAP message o Header - contains information about the request. o Body  Message data - contains request and response information itself.  Fault (optional) - containing errors and status information.
  • 10. A SOAP request: <?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:Body xmlns:m="http://www.example.org/stock"> <m:GetStockPrice> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body> </soap:Envelope>
  • 11. The SOAP response: <?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:Body xmlns:m="http://www.example.org/stock" > <m:GetStockPriceResponse> <m:Price>34.5</m:Price> </m:GetStockPriceResponse> </soap:Body> </soap:Envelope>
  • 13. WSDL • WSDL stands for Web Services Description Language • It is an XML-based language that is used for describing the functionality offered by a Web service. • WSDL file contains info about o How the service can be called o What parameter it expects o What data structure it returns o Which port the application uses o Which protocol the web service uses (like https)
  • 14. Need for stubs (similar to RMI)
  • 15. What are stubs? • A stub is a small program routine that substitutes for a longer program, possibly to be loaded later or that is located remotely. • The stub accepts the request and then forwards it (through another program) to the remote procedure. • When that procedure has completed its service, it returns the results or other status to the stub which passes it back to the program that made the request.
  • 17. Comparision REST services SOAP services • Architectural style • XML-based protocol • Simply calls services via URL • Invokes services by calling path RPC method • Lightweight – not a lot of • Rigid – type checking, extra xml markup adheres to a contract • Easy to build – no toolkits • Development tools – WSDL required Soap analyser tool, oXygen XML