What are the differences between a REST and a SOAP web services?

Below are few differences between REST and SOAP webservices which can help you to decide which one to use in your application:

REST SOAP
It supports different formats like text, JSON and XML. It only supports XML.
It works only over HTTP(S) on a transport layer. It can be used different protocols on a transport layer.
It works with resources, each unique URL is some representation of a resource. It  works with operations, which implement some business logic through different interfaces.
It only supports SSL security. It supports SSL security and WS-security(Web Service-security).
It supports transactions, but it is neither ACID compliant nor can provide two phase commit. It supports ACID (Atomicity, Consistency, Isolation, Durability) properties of transactions.

 

J2EE 12

FOLLOW US ON LinkedIn



Explore Tutu'rself