Introduction

In the mad rush of implementing Rest Services, I will be discussing about key scenarios for REST Vs SOAP i.e when it is best suited to implement REST Vs SOAP or vice-versa.

Can REST fully Replace SOAP? To answer let's understand what is SOAP and REST?

SOAP – Simple Object Access Protocol.

REST – Representational State Transfer

Key Advantages of REST?

Key Challenges with REST?

What's is Verdict for REST vs SOAP?

Both REST & SOAP are best suited for following respective scenarios

REST SOAP
Best Suited for:
  • Web Services.
  • Smaller size messages (Limited bandwidth)
  • Limited resources (No XML parsing required)
  • Exposing data over Internet.
  • Combining content from different sources / SORs in a web browser.
Best Suited for:
  • Enterprise Services
    • High availability WS-RM
    • Supports transactions WS-AT
    • Supports security WS-Security
    • Asynchronous Processing
    • Contract based development
    • Supports interoperability with business applications.

Coming next is REST API Design, till then happy reading and blogging.