XML-RPC, SOAP, REST


Hmm, Remote Procedure Call, Simple Object Access Protocol, Representational State Transfer, etc. are all major methods of accessing a sytem, resources which are not locally accessible to you (Provided they are made available).

Consider the famous Google Search Data, What if you want to have all the database access (search results) for your system. How would you use that even if google could give you access to the resource.

Well google, will definately not give away the username and password and the Server for your usage. But they can give away the resource in some other way.

Enter SOAP, REST, XML-RPC.

SOAP defines a techinque or a protocol through which a client can access a remote Object. How ? The server accepts a particular SOAP Request, which is basically a set XML structure, which includes the name of the Method which is to be called, and the parameters for that method. On the Request, you will get a response which is nothing but XML (structure defined by SOAP)
How different is XML-RPC ? Well, the basic XML structure is different. Even REST, the data that is obtained is XML.

Why are there different standards ?
Ego, Big companies and big EGOs thats what I guess.

Most of these Request-Response interactions are on the HTTP, yes my favourite. and since a great deal of XML is to be delivered to the Server, its the POST method that is used to send the reqeust.

These all technologies, methods envelope the world of Web Services.

Since the basic means of communication is HTTP, its Platform independant. A client written in JavaScript on Linux can access the Web service on a Windows platform written in ASP.NET.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: