SOAP
SOAP or Simple Object Access Protocol is a messaing protocol. Is allows to exchange the structure information without any platform. Soap uses the XML data fromat due to the complexity. It is mostly used for complex systems with strict standards ensuring security and reliability.
Key Concepts
- SOAP is a protocol as it has some strict rules for data fomat and communication.
- It manages the recods and maintain the state between the requests.
- SOAP relies on SSL and WS-Securiy for secured communication.
- SOAP works with the XML data format to handle the complex data.
REST web services
REST (Representational State Transfer) and SOAP (Simple Object Access Protocol) are the most common methods for communications These services enable web to communicate with the servers with HTTP protocol. REST is architectural style that works over HTTP for communication while SOAP is a protocol with strict standards and is helpful for complex system operations.
REST API
REST or Representational State Transfer is an architextural sytle for building the web services. It is mostly used for lightweight and stateless communication. It uses simple HTTP methids like GET, POST, PUT, and DELETE to performoperations on the data resources.
Key Concepts
- Rest uses URI i.e. Uniform Resource Indetifier and assume everything as a resource
- It do not store any past data, requests and do independent operations
- It relies on HTTP method to request any type of operation on the resourse.
- Rest usually works with JSON and XML data formats
Representational State Transfer (REST) was originally introduced as an architectural style for large-scale systems based on distributed resources
The use of REST as a paradigm for service-based interaction between application programs
REST web services are merely HTTP requests to URI using exactly the four methods GET, POST, PUT and DELETE allowed by the HTTP protocol.
Leave a Reply