Web services
An introduction to web service.
Prepared by:- Madhukar
What’s a Web Service?
● A web service is just a web page meant for a computer to
request and process.
● More precisely, a Web service is a Web page that’s meant
to be consumed by an autonomous program as opposed
to a Web browser or similar UI tool.
● Even more precisely the name it self indicates that its a
service which is available over the Web, that’s it.
Examples of web service
● An e-commerce company can use a shipper’s
web service to calculate the exact cost of a
shipment.
● National weather forecasters use them to
supply data to web-sites and news
organizations.
● Stock prices are provided this way by major
exchanges and corporations.
Benefits of Web Services
● Simple – easily supported on many platforms
● Loosely Coupled – the interface can be extended and
new methods added without affecting clients as long as
old methods and parameters are still provided
● Stateless – a request is made, then result is returned
and the connection closes, no permanent connection
● Firewall Friendly – uses HTTP, not usually blocked
When to use Web Services
● Cross platform – i.e. Communicate between a
Java app and a .NET app
● Cross trust boundaries – between two
unrelated organizations
● Future considerations – if there is a possibility
that the logic may have to support third party
integration
● Comunication between IOS and java.
When to Avoid Web Services
● .Net to .Net – there are better ways to
communicate between servers, such as .NET
remoting
● .Net Apps – rather than provide a Service, if two
apps need the same logic create a class library
assembly compiled to a DLL, which is then
used in both apps.
Types of web service
● SOAP(Simple object access protocol)
● REST(Representational state transfer)
We have different type of specifications to implement SOAP and REST services.
● AX-RS provides the implementation of RESTful web services, JAX-RS is a
specification for RESTful Web Services with Java and it is given by Sun. Since it is a
specification, other frameworks can be written to implement these specifications, and
that includes Jersey from Oracle, Resteasy from Jboss, CXF from Apache bla bla.
● JAX-WS, Apache Axis2 provides the implementation for SOAP
● Apache CXF provides implementation for SOAP and RESTful services both.
REST web service
● What ever the data/response we will get from
the server is known as Resource
● Each resource can be accessed by its URI’s.
● We can get the resource from RESTful service
in different formats like,
HTML,XML,JSON,TEXT,PDF and in the Image
formats as well, but in real time we mainly we
will prefer JSON.
REST web service
● REST always prefers to choose HTTP as it a
stateless protocol.
REST web service
RESTful used 4 main HTTP methods…
● GET - Retrieve Data
● POST- Create/Insert Data
● PUT- Update Data
● DELETE- Delete Data
RESTful Web Services (JAX-RS)
Annotations
●
@Path(‘Path‘)
●
@GET
●
@POST
●
@PUT
● @DELETE
● @Produces(MediaType.TEXT_PLAIN [, more-types])
● @Consumes(type[, more-types])
● @PathParam()
● @QueryParam()
● @MatrixParam()
● @FormParam()
How RESTful Web Services Extract
Input Parameters
● @PathParam,@QueryParam,@MatrixParam are parameter annotations
which allows us to map variable URI path fragments into your method
call.
● @PathParam URL Syntax
http://localhost:8080/<Rest Service Name>/rest/customers/100/ccs.
● @QueryParam URL Syntax
http://localhost:8080/…/rest/customers?custNo=100&custName=ccs
● @MatrixParam URL Syntax
http://localhost:8080/…/rest/customers;custNo=100;custName=ccs..
SOAP web service
●
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
● SOAP is simple and extensible
● SOAP allows you to get around firewalls
● SOAP is a W3C recommendation
SOAP web service
Why SOAP?
●
It is important for application development to allow Internet communication between programs.
●
Today's applications communicate using Remote Procedure Calls (RPC) between objects like
DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and
security problem; firewalls and proxy servers will normally block this kind of traffic.
●
A better way to communicate between applications is over HTTP, because HTTP is supported
by all Internet browsers and servers. SOAP was created to accomplish this.
●
SOAP provides a way to communicate between applications running on different operating
systems, with different technologies and programming languages.
SOAP web service
SOAP Building Blocks
● 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
SOAP web service
WSDL
● “ Web Service Description Language” is an XML document that
defines the service interface, protocol bindings, and service
endpoint addresses
● Uses XML schema to define XML types
● Typically uses SOAP to bind the messaging protocol
UDDI
● “ Universal Description, Discovery and Integration” is a
repository/database of services (e.g. defined by WSDLs)
Web service Introduction
Web service Introduction

More Related Content

PPT
Webservices
PPTX
Soap web service
PPTX
PHP slides
PDF
SOAP vs REST
PPTX
HTTP Request Header and HTTP Status Code
PPTX
ASP.NET MVC Presentation
PPT
Php Presentation
PPT
Webservices
Soap web service
PHP slides
SOAP vs REST
HTTP Request Header and HTTP Status Code
ASP.NET MVC Presentation
Php Presentation

What's hot (20)

PPTX
An Overview of Web Services: SOAP and REST
PDF
Laravel Introduction
PPT
Web Service Presentation
PDF
Introduction to WebSockets Presentation
PPT
HTTP Basics
PPT
Soap Vs Rest
PDF
Web Services (SOAP, WSDL, UDDI)
PPTX
Soap vs rest
PPTX
Laravel ppt
PDF
Express node js
PDF
Web Development Course: PHP lecture 1
PPT
Introduction to the Web API
PPTX
REST & RESTful Web Services
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
PPTX
Bootstrap PPT Part - 2
PPTX
PPTX
Html5 tutorial for beginners
PDF
Introduction to HTML5
An Overview of Web Services: SOAP and REST
Laravel Introduction
Web Service Presentation
Introduction to WebSockets Presentation
HTTP Basics
Soap Vs Rest
Web Services (SOAP, WSDL, UDDI)
Soap vs rest
Laravel ppt
Express node js
Web Development Course: PHP lecture 1
Introduction to the Web API
REST & RESTful Web Services
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
Bootstrap PPT Part - 2
Html5 tutorial for beginners
Introduction to HTML5
Ad

Viewers also liked (16)

PDF
Galileo Search & Rescue workshop_European Space Solutions 2016_HELIOS - Alain...
PPT
Virtual Classroom
PPT
Introduction to web services and how to in php
PDF
Introduction to Web Services
PPTX
Naswiz tour app
PDF
Tcm presentation d 2015
PDF
Touch me - Vom Wandel im Umgang mit dem Computer
PPTX
TourOn Multimedia Guided Tour App
PPTX
Collaborative Networks for Intranet
PPTX
Galileo gnss
PPTX
Marketing of a new App Tour-o-pedia
PPTX
My tour app
DOCX
Algorithms
PDF
Knowledge management and emerging collaborative networks in tourism business ...
PPT
Mobile Apps For Tourism Industry
PPTX
KI School - Підсумки 2015
Galileo Search & Rescue workshop_European Space Solutions 2016_HELIOS - Alain...
Virtual Classroom
Introduction to web services and how to in php
Introduction to Web Services
Naswiz tour app
Tcm presentation d 2015
Touch me - Vom Wandel im Umgang mit dem Computer
TourOn Multimedia Guided Tour App
Collaborative Networks for Intranet
Galileo gnss
Marketing of a new App Tour-o-pedia
My tour app
Algorithms
Knowledge management and emerging collaborative networks in tourism business ...
Mobile Apps For Tourism Industry
KI School - Підсумки 2015
Ad

Similar to Web service Introduction (20)

PDF
Web services and Applications in Web Technology.pdf
PPTX
INTERNET PROGRAMMING WEB SERVICES.pptx
PPTX
Web Programming
PPTX
Web services
PPTX
Web services
PPTX
Web services
PPTX
Introduction to APIs (Application Programming Interface)
PPTX
Xml web services
PDF
Web Services
PPT
web services-May 25.ppt
PPTX
SOAP--Simple Object Access Protocol
PDF
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
PPT
Web Services - Lectures and architecture.ppt
DOCX
Web services Concepts
PDF
Rest web service
PPTX
PPTX
Soap and restful webservice
PPT
Intro to web services
PDF
Web Service Implementation Using ASP.NET
Web services and Applications in Web Technology.pdf
INTERNET PROGRAMMING WEB SERVICES.pptx
Web Programming
Web services
Web services
Web services
Introduction to APIs (Application Programming Interface)
Xml web services
Web Services
web services-May 25.ppt
SOAP--Simple Object Access Protocol
wsadddddddddddddddddeb-servsdddddddddddaaaaaaaice.pdf
Web Services - Lectures and architecture.ppt
Web services Concepts
Rest web service
Soap and restful webservice
Intro to web services
Web Service Implementation Using ASP.NET

Recently uploaded (20)

PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Five Habits of High-Impact Board Members
PPTX
Benefits of Physical activity for teenagers.pptx
DOCX
search engine optimization ppt fir known well about this
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Taming the Chaos: How to Turn Unstructured Data into Decisions
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
A contest of sentiment analysis: k-nearest neighbor versus neural network
Five Habits of High-Impact Board Members
Benefits of Physical activity for teenagers.pptx
search engine optimization ppt fir known well about this
A novel scalable deep ensemble learning framework for big data classification...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Assigned Numbers - 2025 - Bluetooth® Document
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Tartificialntelligence_presentation.pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
CloudStack 4.21: First Look Webinar slides
Enhancing emotion recognition model for a student engagement use case through...
1 - Historical Antecedents, Social Consideration.pdf
observCloud-Native Containerability and monitoring.pptx
NewMind AI Weekly Chronicles – August ’25 Week III
A comparative study of natural language inference in Swahili using monolingua...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game

Web service Introduction

  • 1. Web services An introduction to web service. Prepared by:- Madhukar
  • 2. What’s a Web Service? ● A web service is just a web page meant for a computer to request and process. ● More precisely, a Web service is a Web page that’s meant to be consumed by an autonomous program as opposed to a Web browser or similar UI tool. ● Even more precisely the name it self indicates that its a service which is available over the Web, that’s it.
  • 3. Examples of web service ● An e-commerce company can use a shipper’s web service to calculate the exact cost of a shipment. ● National weather forecasters use them to supply data to web-sites and news organizations. ● Stock prices are provided this way by major exchanges and corporations.
  • 4. Benefits of Web Services ● Simple – easily supported on many platforms ● Loosely Coupled – the interface can be extended and new methods added without affecting clients as long as old methods and parameters are still provided ● Stateless – a request is made, then result is returned and the connection closes, no permanent connection ● Firewall Friendly – uses HTTP, not usually blocked
  • 5. When to use Web Services ● Cross platform – i.e. Communicate between a Java app and a .NET app ● Cross trust boundaries – between two unrelated organizations ● Future considerations – if there is a possibility that the logic may have to support third party integration ● Comunication between IOS and java.
  • 6. When to Avoid Web Services ● .Net to .Net – there are better ways to communicate between servers, such as .NET remoting ● .Net Apps – rather than provide a Service, if two apps need the same logic create a class library assembly compiled to a DLL, which is then used in both apps.
  • 7. Types of web service ● SOAP(Simple object access protocol) ● REST(Representational state transfer) We have different type of specifications to implement SOAP and REST services. ● AX-RS provides the implementation of RESTful web services, JAX-RS is a specification for RESTful Web Services with Java and it is given by Sun. Since it is a specification, other frameworks can be written to implement these specifications, and that includes Jersey from Oracle, Resteasy from Jboss, CXF from Apache bla bla. ● JAX-WS, Apache Axis2 provides the implementation for SOAP ● Apache CXF provides implementation for SOAP and RESTful services both.
  • 8. REST web service ● What ever the data/response we will get from the server is known as Resource ● Each resource can be accessed by its URI’s. ● We can get the resource from RESTful service in different formats like, HTML,XML,JSON,TEXT,PDF and in the Image formats as well, but in real time we mainly we will prefer JSON.
  • 9. REST web service ● REST always prefers to choose HTTP as it a stateless protocol.
  • 10. REST web service RESTful used 4 main HTTP methods… ● GET - Retrieve Data ● POST- Create/Insert Data ● PUT- Update Data ● DELETE- Delete Data
  • 11. RESTful Web Services (JAX-RS) Annotations ● @Path(‘Path‘) ● @GET ● @POST ● @PUT ● @DELETE ● @Produces(MediaType.TEXT_PLAIN [, more-types]) ● @Consumes(type[, more-types]) ● @PathParam() ● @QueryParam() ● @MatrixParam() ● @FormParam()
  • 12. How RESTful Web Services Extract Input Parameters ● @PathParam,@QueryParam,@MatrixParam are parameter annotations which allows us to map variable URI path fragments into your method call. ● @PathParam URL Syntax http://localhost:8080/<Rest Service Name>/rest/customers/100/ccs. ● @QueryParam URL Syntax http://localhost:8080/…/rest/customers?custNo=100&custName=ccs ● @MatrixParam URL Syntax http://localhost:8080/…/rest/customers;custNo=100;custName=ccs..
  • 13. SOAP web service ● 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 ● SOAP is simple and extensible ● SOAP allows you to get around firewalls ● SOAP is a W3C recommendation
  • 14. SOAP web service Why SOAP? ● It is important for application development to allow Internet communication between programs. ● Today's applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic. ● A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this. ● SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
  • 15. SOAP web service SOAP Building Blocks ● 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
  • 16. SOAP web service WSDL ● “ Web Service Description Language” is an XML document that defines the service interface, protocol bindings, and service endpoint addresses ● Uses XML schema to define XML types ● Typically uses SOAP to bind the messaging protocol UDDI ● “ Universal Description, Discovery and Integration” is a repository/database of services (e.g. defined by WSDLs)