2. Table of Content
• Web Services - Overview
• Creating a Web Service
• Environment configuration required for creation
of Web Services
• Deploying a Web Service on a server
• Testing a Web Service
• Consuming a Web Service or Creation of Web
Service
4. What is a Web Service?
• A method of communication between two
electronic devices over the Web
• A software system designed to support
interoperable machine-to-machine interaction
over a network
5. Web Service Terminology
• XML:
Extensible Markup Language
Set of rules for encoding documents in a format which is
both human-readable and machine-readable.
Simple, Generalized and Usable across the Internet
7. Web Service Terminology
• SOAP:
Simple Object Access protocol
Protocol specification for exchanging structured information
Uses XML Information Set for its message format
10. Web Service Terminology
• WSDL:
• Web Services Description Language
• Used for describing the functionality offered by a web service.
• It is an XML-based interface definition language.
• Used as a combination with SOAP and an XML Schema to provide Web
services.
13. Web Service Terminology
• UDDI:
• Universal Description, Discovery, and Integration
• Directory for storing information about web services
14. Advantages
• Interoperability- Communication is possible
between source and the destination;
Irrespective of the technological differences.
• Usability- Logic once exposed can be used by
several other systems.
• Deployability- Use HTTP protocol, therefore,
can deploy Web Services even over the fire
wall to servers running on the Internet
39. Deploying Web Service
• Copy War file downloaded earlier to webapps folder:
C:Program Files (x86)Apache Software FoundationTomcat 6.0webapps
40. Deploying Web Service
• Copy the .aar file to
webapps>>axis2>>WEB-INF>>services
“C:Program Files (x86)Apache Software FoundationTomcat
6.0webappsaxis2WEB-INFservices”
• Restart the tomcat service
49. Testing a Web Service
• Web Service Explorer:
In built tool to test the web service.
Windows >> Preferences >> Web Services >> Test Facility
Defaults >> Web Service Explorer
77. Summary
• Web Services - Overview
• Creating a Web Service
• Environment configuration required for
creation of Web Services and Clients
• Deploying a Web Service on a server
• Testing a Web Service
• Consuming a Web Service or Creation of Web
Service