Wednesday 27 March 2024

SOAP API & REST API

SOAP API

  • SOAP APIs were widely used during this time to enable interoperability between applications running on different platforms and written in different programming languages.
  • SOAP APIs were particularly popular in enterprise applications, where they were used to expose functionality in a standardized, secure, and reliable way.
  • However, with the emergence of RESTful APIs, which are simpler, more flexible, and more efficient than SOAP APIs, their usage has declined in recent years.
  • SOAP is designed to be platform and language independent, making it well suited for integration with a variety of systems. It uses a standard format for sending and receiving messages, allowing for a common method of communication between different systems.
  • SOAP defines a set of rules for structuring messages and exchanging data over the internet.
  • It uses a combination of XML and HTTP to send and receive messages, making it independent of the underlying transport protocol.
  • SOAP messages can be sent over a variety of transport protocols, including HTTP, SMTP, and TCP.


REST API

  • REST is an acronym for Representational State Transfer.
  • It’s an architectural style that specifies guidelines for creating loosely linked apps that communicate via the HTTP protocol.
  • REST does not provide how to put the ideas into practice at a lower level. Instead, the REST principles allow developers to customize the details to their specific requirements.
  • Also, RESTful web services are online services that follow the REST architectural paradigm.
  • A Restful service will use the standard HTTP verbs GET, POST, PLACE, and DELETE to interact with the required components. REST uses XML, JSON (JavaScript Object Notation), or plain text for all requests and responses.
  • It is faster than SOAP because JSON (lightweight) is utilized in the request/payload.

No comments:

Salesforce AI Associate Certification - 3

What is semantic retrieval in the context of LLMs?   Searching for relevant information in other data sources What additional protection do...