What is Web Service
A Web Service is can be defined by following ways:
Let's understand it by the figure given below:
As you can see in the figure, java, .net or PHP applications can communicate with other applications through web service over the network. For example, java application can interact with Java, .Net and PHP applications. So web service is a language independent way of communication.
Types of Web Services
There are mainly two types of web services.