Understanding SOAP and REST Basics
Understanding SOAP and REST Basics
Simple Object Access Protocol (SOAP) and REpresentational State Transfer (REST) are two
answers to the same question: how to access Web services. The choice initially may seem
easy, but at times it can be surprisingly difficult.
its important to clarify that both SOAP and REST are protocols: a set of rules for requesting
information from a server using a specific technique.
SOAP is definitely the heavyweight choice for Web service access. It provides the
following advantages when compared to REST:
point communication)
Standardized
REST is easier to use for the most part and is more flexible. It has the following
advantages when compared to SOAP:
Efficient (SOAP uses XML for all messages, REST can use smaller message
formats)
Fast (no extensive processing required)
Closer to other Web technologies in design philosophy
REST
SOAP
Requires significant
tooling/middleware support
Reliable
No error handling
Less verbose
More verbose