A Web Service is can be defined by following ways:
- is a client server application or application component for communication.
- method of communication between two devices over network.
- is a software system for interoperable machine to machine communication.
- 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 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.
- SOAP web services.
- RESTful web services.