SlideShare a Scribd company logo
Web Services
By
Uma
SOA – Service Oriented Architecture
What is Web Service?
 Web services are client and server applications that
communicate over the World Wide Web’s (WWW) HyperText
Transfer Protocol (HTTP).
 A way of integrating Web-based applications using the
XML, SOAP, WSDL and UDDI open standards over an Internet
protocol backbone.
 Web services can be combined in a loosely coupled way to
achieve complex operations.
 Programs providing simple services can interact with each
other to deliver sophisticated added-value services.
Uses of Web Services
Reusable Application Components
Connect Existing Software
Free Web Services Site
http://www.ezzylearning.com/services/
http://www.webservicex.net/WS/wscatlist.aspx
http://www.gisgraphy.com/free-access.htm
http://www.geonames.org/
REST
WSDL WADL
Categories of Web Services
SOAP Architecture
SOAP
Simple Object Access Protocol (SOAP) is a standard
protocol specification for message exchange based on XML.
Communication between the web service and client
happens using XML messages.
SOAP defines the rules for communication like what are all
the tags that should be used in XML and their meaning.
Apache CXF
 Open Source Services Framework
 Build and develop services using frontend programming
APIs, like JAX-WS and JAX-RS.
 This Services run on different protocols
SOAP, XML/HTTP, RESTful HTTP, or CORBA
 Work on different transports HTTP, JMS or JBI.
What is WSDL?
WSDL stands for Web Services Description Language.
WSDL is a language for describing web services and
how to access them.
WSDL is written in XML.
WSDL definition describes how to access a web
service and what operations it will perform.
WSDL Elements
Types– a container for data type definitions using some type
system (such as XSD).
Message– an abstract, typed definition of the data being
communicated.
Operation– an abstract description of an action supported by
the service.
Port Type–an abstract set of operations supported by one or
more endpoints.
Binding– a concrete protocol and data format specification for
a particular port type.
Port– a single endpoint defined as a combination of a binding
and a network address.
Service– a collection of related endpoints.
How to implement SOAP Web service?
Interfaces & its Implementations
@WebService
public interface ServiceName {
public String serviceMethod1();
public int serviceMethod2(args);
}
@WebService(endpointInterface = " *.Service")
public class ServiceImpl implements Service{
@Override
public String serviceMethod1() {…....}
@Override
Public int serviceMethod2(args){.......}
}
Rest Architecture
REST
 REST is a client-server architecture which (among other things)
leverages the full capacity of the HTTP protocol.
 RESTful webservices use HTTP methods explicitly by mapping
the REST operations to HTTP methods:
Create - POST
Retrieve - GET
Update - PUT
Delete - DELETE
WADL
The Web Application Description Language (WADL) is a
machine-readable XML description of HTTP-based web
applications (typically REST web services).
WADL models the resources provided by a service and the
relationships between them.
 WADL is intended to simplify the reuse of web services that
are based on the existing HTTP architecture of the Web.
Implementation of REST Web service
Service Beans(Class as a Resource)
@Path(“rest”)
Class Resource
{
@GET
@Produces("text/plain")
Public String method1()
{….....}
@GET
@Consumes("application/json")
Public Response method2 ()
{ …....}
}
THANK YOU

More Related Content

What's hot

What's hot (20)

Web services
Web servicesWeb services
Web services
 
WSDL
WSDLWSDL
WSDL
 
Webservices divya 1
Webservices divya 1Webservices divya 1
Webservices divya 1
 
Webservices divya
Webservices divyaWebservices divya
Webservices divya
 
Rest surekha
Rest surekhaRest surekha
Rest surekha
 
Webservices
WebservicesWebservices
Webservices
 
Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdl
 
Web Services
Web Services Web Services
Web Services
 
Web services wsdl
Web services wsdlWeb services wsdl
Web services wsdl
 
Web services
Web servicesWeb services
Web services
 
Web Services - WSDL
Web Services - WSDLWeb Services - WSDL
Web Services - WSDL
 
Web services soap
Web services soapWeb services soap
Web services soap
 
Web services
Web servicesWeb services
Web services
 
WSDL 2.0 and Apache Woden
WSDL 2.0 and Apache WodenWSDL 2.0 and Apache Woden
WSDL 2.0 and Apache Woden
 
Soap web service
Soap web serviceSoap web service
Soap web service
 
Soa 10 soa technology soap
Soa 10 soa technology soapSoa 10 soa technology soap
Soa 10 soa technology soap
 
Soa 9 soa technologies wsdl
Soa 9 soa technologies wsdlSoa 9 soa technologies wsdl
Soa 9 soa technologies wsdl
 
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
 
CodeMash 2013 Microsoft Data Stack
CodeMash 2013 Microsoft Data StackCodeMash 2013 Microsoft Data Stack
CodeMash 2013 Microsoft Data Stack
 
Java web services
Java web servicesJava web services
Java web services
 

Viewers also liked (12)

Spring aop
Spring aopSpring aop
Spring aop
 
The civil war begins
The civil war beginsThe civil war begins
The civil war begins
 
The civil war begins
The civil war beginsThe civil war begins
The civil war begins
 
The civil war begins
The civil war beginsThe civil war begins
The civil war begins
 
Outline of Android
Outline of AndroidOutline of Android
Outline of Android
 
Welcome to the Next Level in Sponsorship
Welcome to the Next Level in SponsorshipWelcome to the Next Level in Sponsorship
Welcome to the Next Level in Sponsorship
 
The civil war begins final
The civil war begins finalThe civil war begins final
The civil war begins final
 
3 36764 the_nextlevelofsocialsponsorshipsbymassrelevancemedia
3 36764 the_nextlevelofsocialsponsorshipsbymassrelevancemedia3 36764 the_nextlevelofsocialsponsorshipsbymassrelevancemedia
3 36764 the_nextlevelofsocialsponsorshipsbymassrelevancemedia
 
Sales and Marketing Alignment
Sales and Marketing AlignmentSales and Marketing Alignment
Sales and Marketing Alignment
 
Test automationslides
Test automationslidesTest automationslides
Test automationslides
 
Networking Fundamentals
Networking FundamentalsNetworking Fundamentals
Networking Fundamentals
 
Effective Spring Transaction Management
Effective Spring Transaction ManagementEffective Spring Transaction Management
Effective Spring Transaction Management
 

Similar to Web services

webservices overview
webservices overviewwebservices overview
webservices overview
elliando dias
 
Xml web services
Xml web servicesXml web services
Xml web services
Raghu nath
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
sanjoysanyal
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
sanjoysanyal
 

Similar to Web services (20)

Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservices
 
Xml.ppt
Xml.pptXml.ppt
Xml.ppt
 
Web service
Web serviceWeb service
Web service
 
Web services
Web servicesWeb services
Web services
 
webservices overview
webservices overviewwebservices overview
webservices overview
 
Efficient retrieval of web services using prioritization and clustering
Efficient retrieval of web services using prioritization and clusteringEfficient retrieval of web services using prioritization and clustering
Efficient retrieval of web services using prioritization and clustering
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modelling
 
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
 
Web services for developer
Web services for developerWeb services for developer
Web services for developer
 
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
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
Advantage of WCF Over Web Services
Advantage of WCF Over Web ServicesAdvantage of WCF Over Web Services
Advantage of WCF Over Web Services
 
Xml web services
Xml web servicesXml web services
Xml web services
 
WebService-Java
WebService-JavaWebService-Java
WebService-Java
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Web programming
Web programmingWeb programming
Web programming
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 

Web services

  • 2. SOA – Service Oriented Architecture
  • 3. What is Web Service?  Web services are client and server applications that communicate over the World Wide Web’s (WWW) HyperText Transfer Protocol (HTTP).  A way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone.  Web services can be combined in a loosely coupled way to achieve complex operations.  Programs providing simple services can interact with each other to deliver sophisticated added-value services.
  • 4. Uses of Web Services Reusable Application Components Connect Existing Software
  • 5. Free Web Services Site http://www.ezzylearning.com/services/ http://www.webservicex.net/WS/wscatlist.aspx http://www.gisgraphy.com/free-access.htm http://www.geonames.org/
  • 8. SOAP Simple Object Access Protocol (SOAP) is a standard protocol specification for message exchange based on XML. Communication between the web service and client happens using XML messages. SOAP defines the rules for communication like what are all the tags that should be used in XML and their meaning.
  • 9. Apache CXF  Open Source Services Framework  Build and develop services using frontend programming APIs, like JAX-WS and JAX-RS.  This Services run on different protocols SOAP, XML/HTTP, RESTful HTTP, or CORBA  Work on different transports HTTP, JMS or JBI.
  • 10. What is WSDL? WSDL stands for Web Services Description Language. WSDL is a language for describing web services and how to access them. WSDL is written in XML. WSDL definition describes how to access a web service and what operations it will perform.
  • 11.
  • 12. WSDL Elements Types– a container for data type definitions using some type system (such as XSD). Message– an abstract, typed definition of the data being communicated. Operation– an abstract description of an action supported by the service. Port Type–an abstract set of operations supported by one or more endpoints. Binding– a concrete protocol and data format specification for a particular port type. Port– a single endpoint defined as a combination of a binding and a network address. Service– a collection of related endpoints.
  • 13. How to implement SOAP Web service? Interfaces & its Implementations @WebService public interface ServiceName { public String serviceMethod1(); public int serviceMethod2(args); } @WebService(endpointInterface = " *.Service") public class ServiceImpl implements Service{ @Override public String serviceMethod1() {…....} @Override Public int serviceMethod2(args){.......} }
  • 15. REST  REST is a client-server architecture which (among other things) leverages the full capacity of the HTTP protocol.  RESTful webservices use HTTP methods explicitly by mapping the REST operations to HTTP methods: Create - POST Retrieve - GET Update - PUT Delete - DELETE
  • 16. WADL The Web Application Description Language (WADL) is a machine-readable XML description of HTTP-based web applications (typically REST web services). WADL models the resources provided by a service and the relationships between them.  WADL is intended to simplify the reuse of web services that are based on the existing HTTP architecture of the Web.
  • 17. Implementation of REST Web service Service Beans(Class as a Resource) @Path(“rest”) Class Resource { @GET @Produces("text/plain") Public String method1() {….....} @GET @Consumes("application/json") Public Response method2 () { …....} }