A Web Service is can be defined by following ways:
- It is a client-server application or application component for communication.
- The method of communication between two devices over the network.
- It is a software system for the interoperable machine to machine communication.
- It is a collection of standards or protocols for exchanging information between two devices or application.
Let’s understand it by the figure given below:
As you can see in the figure, Java, .net, and PHP applications can communicate with other applications through web service over the network. For example, the 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.
- SOAP web services.
- RESTful web services.
Web Service Features