Web Services
From IIITM-k-wiki
Contents |
Team
Team Guide
- Dr.Venkatesh Choppella
Project Implementation Team
- Cibi Chacko
- Lekshmi V R
- Subha I
- Rejoy Bhaskar
Purpose
To develop a Web service to communicate between two applications.
Objective
The idea behind this project is that if we change the underground schema in XML we should be able to customize this project for any hotel, hospital application.
Description
The project aims to develop a web service that interacts with other web applications for the purpose of exchanging data.
Web services allow different applications from different sources to communicate with each other without time-consuming custom coding, and because all communication is in XML, Web services are not tied to any one operating system or programming language.
System Architecture
Proposed Way Of Implementing The System
The proposed system that was to be implemented was a simple web services oriented system. In this system there were three applications which would talk to one another, if they wanted to exchange data among them. The way that could be implemented is with the use of the SOAP protocol.
SOAP Protocol
SOAP stands for Simple Object Access Protocol. This protocol is used for exchanging xml based messages over the network. There are various ways in which SOAP works. But the most commonly used is RPC which stands for Remote Procedural Call. In this method the client sends a request message to the server, to which the server immediately sends a response message to the client.
Demonstration Of SOAP using a simple *E.G.
Here is an example of how a client might format a SOAP message requesting product information from a fictional warehouse web service. The client needs to know which product corresponds with the ID 827635:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getProductDetails xmlns="http://warehouse.example.com/ws">
<productID>827635</productID>
</getProductDetails>
</soap:Body>
</soap:Envelope>
And here is a possible response to the client request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getProductDetailsResponse xmlns="http://warehouse.example.com/ws">
<getProductDetailsResult>
<productName>Toptimate 3-Piece Set</productName>
<productID>827635</productID>
<description>3-Piece luggage set. Black Polyester.</description>
<price currency="NIS">96.50</price>
<inStock>true</inStock>
</getProductDetailsResult>
</getProductDetailsResponse>
</soap:Body>
</soap:Envelope>
- -> This e.g. was quoted from Wikipedia.
Implemented System
We implemented a system that has three applications. One application that takes in the customer id and Name, other application that takes in the customer id and blood group. And the third application returns the blood group if we enter the customer name. This is implemented in a way that the application retrieves the data from the various databases, namely two different databases.


