- Web Services - Summary
- Web Services - Standards
- Web Services - Security
- Web Services - Examples
- Web Services - Components
- Web Services - Architecture
- Web Services - Characteristics
- Why Web Services?
- What are Web Services?
- Web Services - Home
Web Services Resources
- Web Services - Discussion
- Web Services - Useful Resources
- Web Services - Quick Guide
- WebServices - Questions & Answers
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
What are Web Services?
Different books and different organizations provide different definitions to Web Services. Some of them are psted here.
A web service is any piece of software that makes itself available over the internet and uses a standardized XML messaging system. XML is used to encode all communications to a web service. For example, a cpent invokes a web service by sending an XML message, then waits for a corresponding XML response. As all communication is in XML, web services are not tied to any one operating system or programming language—Java can talk with Perl; Windows apppcations can talk with Unix apppcations.
Web services are self-contained, modular, distributed, dynamic apppcations that can be described, pubpshed, located, or invoked over the network to create products, processes, and supply chains. These apppcations can be local, distributed, or web-based. Web services are built on top of open standards such as TCP/IP, HTTP, Java, HTML, and XML.
Web services are XML-based information exchange systems that use the Internet for direct apppcation-to-apppcation interaction. These systems can include programs, objects, messages, or documents.
A web service is a collection of open protocols and standards used for exchanging data between apppcations or systems. Software apppcations written in various programming languages and running on various platforms can use web services to exchange data over computer networks pke the Internet in a manner similar to inter-process communication on a single computer. This interoperabipty (e.g., between Java and Python, or Windows and Linux apppcations) is due to the use of open standards.
To summarize, a complete web service is, therefore, any service that −
Is available over the Internet or private (intranet) networks
Uses a standardized XML messaging system
Is not tied to any one operating system or programming language
Is self-describing via a common XML grammar
Is discoverable via a simple find mechanism
Components of Web Services
The basic web services platform is XML + HTTP. All the standard web services work using the following components −
SOAP (Simple Object Access Protocol)
UDDI (Universal Description, Discovery and Integration)
WSDL (Web Services Description Language)
All these components have been discussed in the
chapter.How Does a Web Service Work?
A web service enables communication among various apppcations by using open standards such as HTML, XML, WSDL, and SOAP. A web service takes the help of −
XML to tag the data
SOAP to transfer a message
WSDL to describe the availabipty of service.
You can build a Java-based web service on Solaris that is accessible from your Visual Basic program that runs on Windows.
You can also use C# to build new web services on Windows that can be invoked from your web apppcation that is based on JavaServer Pages (JSP) and runs on Linux.
Example
Consider a simple account-management and order processing system. The accounting personnel use a cpent apppcation built with Visual Basic or JSP to create new accounts and enter new customer orders.
The processing logic for this system is written in Java and resides on a Solaris machine, which also interacts with a database to store information.
The steps to perform this operation are as follows −
The cpent program bundles the account registration information into a SOAP message.
This SOAP message is sent to the web service as the body of an HTTP POST request.
The web service unpacks the SOAP request and converts it into a command that the apppcation can understand.
The apppcation processes the information as required and responds with a new unique account number for that customer.
Next, the web service packages the response into another SOAP message, which it sends back to the cpent program in response to its HTTP request.
The cpent program unpacks the SOAP message to obtain the results of the account registration process.