What is web service

 What is Web Service

Web Services: Web services are services that communicate over the network using standardized protocols such as HTTP. They enable different systems to interact and exchange data using XML or JSON payloads. Common web service technologies include SOAP (Simple Object Access Protocol) and REST (Representational State Transfer).


Software System designed to support interoperable machine-to-machine interaction over a network

3 Keys

  1. Designed for machine to machine (or Application to Application interaction)
  2. Should be interoperable - not platform dependent
  3. Should allow communication over a network
In given above image my application able to communicate with different app which written on different languages 


How


1. How Data exchange happen between application to application
Ans. By Request and Response or Input and Output

2. How Web Service is platform Independent
Ans. By Using XML, JSON
In given below image how our Different Technology (Java,C#,Python) are able to communicate with java web service
is by using platform independent Request/Response format(XML, JSON)





XML/JSON

These two Request/Response Format are platform independent which makes our Web service to Platform Independent



3. How Application know the format of Request/Response
Ans. By using Service Definition
As we don't know what request to send, where to send it, and what is the format of the Request/Response
we have 4 things in Service Definition
    1. Request/Response Format
    2. Request Structure
    3. Response Structure
    4. End Point (where the service available  means URL)






Comments

Popular posts from this blog

Introduction of RESTful Web Service

Learn JPA and Hibernate

Implementing Dynamic Filtering for Rest API