DEV Community

Eelco Verbrugge
Eelco Verbrugge

Posted on

REST vs. SOAP

SOAP: Simple Object Access Protocol

SOAP was created to accomplish communication between applications over all internet browsers and servers. Regardless of any operating system, technology or programming language.

  1. It is a protocol
  2. Based on rules
  3. XML only
  4. Not cacheable

REST: REpresentational State Transfer

  1. Architectural principles
  2. A set of guidelines
  3. HTML, XML, plain text, and JSON
  4. HTTP only

SOAP vs. REST

REST is faster and more flexible then SOAP for web-based scenarios. SOAP however has built-in (security) rules with specific requirements, this fit many enterprise needs better but is heavier.

That's all folks~

Top comments (0)