REST vs SOAP vs XML/RPC

Comparison

Type Light Weight Easy to build Rigid Examples
REST Yes(no extra xml markup) Yes No Yahoo Services(Flickr,Technorati)
SOAP No(soap specific xml markups) No(Requires tools eg. apache axis2) Yes(Support for Type Checking, WSDL) Google
XML/RPC Yes Yes

(Apache XML RPC library can be used)

Yes

(has a predefined xml envelop for invoking methods with params, data types are supported)

What is REST?

The acronym REST stands for Representational State Transfer. This means that each unique URL is a representation of some object. You can get the contents of that object using an HTTP GET, to delete/update it, you then might use a POST, PUT, or DELETE.

What is SOAP?

SOAP is a protocol for accessing a web-service. More information here.

What is XML/RPC?

XML-RPC is a remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism. It is primarily designed to call methods. See this link for an example.

Advertisements

2 responses

  1. I find that most rest services are not very restful. hence, my choice will always be plain XML over HTTP. works with all modern languages including javascript/jquery xmlhttp/ajax

    1. Yes XML/HTTP is a good choice 🙂

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: