SlideShare uma empresa Scribd logo
1 de 18
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

Mais conteúdo relacionado

Mais procurados

Mais procurados (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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

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 () { …....} }