Friday, July 12, 2013

What is the difference between REST & SOAP?

  1. SOAP is a XML-based message protocol, while REST is an architectural style
  2. SOAP uses WSDL for communication between consumer and provider, whereas REST just uses XML or JSON to send and receive data
  3. SOAP invokes services by calling RPC method, REST just simply calls services via URL path
  4. SOAP doesn't return human readable result, whilst REST result is readable with is just plain XML or JSON
  5. SOAP is not just over HTTP, it also uses other protocols such as SMTP, FTP, etc, REST is over only HTTP

No comments:

Post a Comment