Javatpoint Logo

91-9990449935

 0120-4256464

What is Web Service

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:

web services

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.

  1. SOAP web services.
  2. RESTful web services.
types of web services