An Analysis on Designing Action-Based REST APIs

SOAP is based on operations that are mapped easily to a normal function in code. REST, on the other hand, deals with resources that should be mapped somehow to functions.

HTTP
 
Code| SOAP| REST
getUsers()| getUsers| !
addUser(..)| addUser| !
UpdateUser(..)| updateUser| !
deleteUser(..)| deleteUser| !

REST is not a protocol itself; it depends only on what HTTP provides. Therefore, HTTP should provide us with a solution to do/ask for something.