01 Intro To Web-Services

Webservices are Client Server or Consumer Provider applications that communicate on network through the http protocol and exchange messages or data as XML or JSON or something else.


Webservice provides interoperability between software applications meaning software applications running or developed in different programming languages can communication with each other no matter what platform they are running on.


For example, a java application running on Linux env can communicate with .net or pythin running on widows.

Basically, webservice allows applications to be developed in loosely coupled fashion that is two or more applications.


There are two types of webservices. 1. Soap (xml) and 2. RESTFul


  1. Soap

    • It uses http post to exchange message.


  2. RESTFul

    • It uses different HTTP Methods (GET, POST …)

    • It also support multiple data formats.

    • Much powerful.


In the world of JAVA, two webservice standards are:

  1. JAX-WS → JAVA API for XML web services.

  2. JAX-RS → Java API for Restful webservices.


Quiz

  1. What are the advantages of Web Services? → Interoperability, Loose Coupling, Extensibility

  2. Two java standards to implement SOAP and REST web services are? → JAX-WS and JAX-RS

  3. The two popular web service types are → SOAP and REST