Tutorial 05 – Web services and SOAP

01:web applications with web services

Applications that are accessed through browsers are web applications and it is the collection of multiple web pages. These are basically dependent on client server architecture where browser acts as a client which sends the request to server. 
A web application is a software application that a user runs in the web browser. It have the following features.
  • It has a User Interface
  • Runs in Client - Server environment
  • Client runs it with the help of a web browser
  • Server process the data based on client request and provide response
 Web services are mainly used to communicate the information between two systems ignoring UI interaction. Messages are transferred from one application to another application via JSONS and XMLs etc.

A web service is an Application Program Interface (API) that runs on the server, which provide data to the client over http through a standardized messaging system. (XML, JSON, etc...). Web services are further classified into SOAP and REST. In the present day scenario most services prefer REST over SOAP.
Some other use cases of Web Services are
  • PayPal api
  •  Facebook api
  • Twitter api

02:what WSDL is and the use of it in the context of web services

WSDL
1. WSDL stands for Web Services Description Language.
2. WSDL is an XML-based language for describing Web services and it is a W3C recommendation.
3. It specifies the location of the service and the operations (or methods) the service exposes.
    WSDL has three parts:
1. Definitions: Definitions are generally expressed in XML and include both data type definitions and message definitions that use the data type definitions.
2. Operations: Operations describe actions for the messages supported by a Web service.
3. Service bindings: Bindings defines the message format and protocol details for a web service. 
4. WSDL is machine readable, meaning a program could read a WSDL file and from that deduce how to call a given web service. You can also generate code for clients from a WSDL file.



Comments