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
- Designed for machine to machine (or Application to Application interaction)
- Should be interoperable - not platform dependent
- 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
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)
These two Request/Response Format are platform independent which makes our Web service to Platform Independent
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
Post a Comment