Tuesday, 10 July 2012

Working of Web Services!!


Web Service
It is a method used for communication between client and server over the Web.
Supports Interoperable(prog in c++,running in windows VS prog in java running in Unix) machine to machine communication..
Existing:SOAP based Web Service.
Devoloping :REST based Web service.
How does it function??
  1. The client which requires the service goes and accesses the discovery servicewhich provides the location of the server ,which is an URL that provides the web service.
  2. This URL returned is accessed only by the software,not by the humans.
  3. The client ,knows the location .It asks the server how to invoke the service and obtains a WSDL(description language).
  4. WSDL uses 2 stubs                                                                                                                           ---->Client stub- Client side code, Generates SOAP requests,Interprets SOAP responses.     ---->Server stub-Server side code, Generates SOAP requests,Interprets SOAP                              responses frm client.
  5. Now the client invokes the service,via the stubs and gets the service executed.
SOAP ENGINE is used instead of stubs ,to reduce the overload of creating stubs in each web service.
SOAP engines(consists of the web services) lie within the Application server which resides in the Web server.
SOAP requests are transmitted through the Http protocol.

- Sourcebits University
Cloud Computing

No comments:

Post a Comment