Sunday, August 13, 2017

What is Web Service-API?

Web service is standard way to create communication between client and server application over internet. It is way of communication between two stand alone application to share information among them irrespective of their architecture and framework



In above  diagram there is Client and Web service . Web services sends request to client to get required information and client sends appropriate response to web service with requested information.


Another example to understand in simple web service . Suppose you have a website where you wish to show weather report in your website but instead of developing everything you can use a data from existing website where weather forecast is already developed. Now you can use that weather data using API in your website.

I would like to tell another simple real time example for webservice here. Suppose you went to Hotel and there is kitchen now here there is a mediator who takes your order and pass it to kitchen to prepare food and once food is prepared mediator takes your ordered food from kitchen to you. In this scene Mediator plays role of API - Webservice.


0 comments:

Post a Comment

Popular Posts