The journey of communication in Java has many stops. RPC, RMI, CORBA, WebServices (SOAP, RESTful), EJB Standards, ORM and JPA, JDBC etc. Let’s understand all in one liner statement.

Webservice can be defines as way of communication between two different application (can be in different language) over the network or same system using a specific type document (Can be XML, JSON etc). There are mainly two type of webservice SOAP(Simple Object Access Protocol) and RESTful. SOAP again has two flavours RPC style and document based. In java world SOAP is JAX-WS and RESTful is JAX-RS.

Here are some important points.

More on SOAP and REST. Please follow the links.