Sunday, November 15, 2015

Web Services

Web Service Basics:
 
A web service is a way of calling a function which is inside a software from some other software. lets say there are two softwares- 1.Company management , 2.Employee management. Software one(Company management) gives a call to function which is inside software two(Employee management).The software which gives a call to a web service is called a client(Here client is software one-Company management). The software which gives a  service to the request as a response is called server(Here server is software two- Employee management). This two software(Company management and Employee management) need not to be written in same language. software one(Company management) can be written in java, software two(Employee management) can be written in dot net.  This softwares need not to be on the same machine. software one(Company management) can be on machine one , software two(Employee management) can be on machine two. But there should be a network(LAN,Internet) connecting these two softwares.
Lets say-
Company application gives a call to Employee application and says provide me (listOfEmployees()), Employee
application receives this call and response back sending (listofEmployees()).
In web service there are two things, server-(service provider/publisher/exposer) and client-(service consumer).
In above explained example Employee application is service provider/exposer and Company application is service consumer.
Web Service can be classified as:
1.    Soap Based Web Service
2.    Restful  Web  Service

0 comments:

Post a Comment