I have a web application that uses AJAX to grab JSON data from the server. It requires that the user first log in with their browser so that a cookie can be set. Only the
hate to break it to you all. RPC is making a local call, that abstracts the underlaying remote behaviour. and guess what? doing REST is the same thing. the argument about REST is about resources is incorrect, you actually directly invoke actions.
I claim REST over HTTP with jsons are a form of RPC.
other popular RPC may include SOAP for example