I am having a hard time deciding which Web Service to implement for my coming project. SOAP or REST Can you people please throw some thoughts and explain the difference between how SOAP and REST APIs work so I can come to some conclusions. I am totall new to Web Services and just started to read about them. Any help is kindly appreciated.
That helped me read more about REST, but what I was actually looking for is some behavioral differences in the performances of SOAP and REST. If some one could still point on to that it would be great.
As mentioned in that thread REST isn't an API its an architectural style. That means that there is very little tool support for the development of REST-style web services. REST is potentially more performant than SOAP based web services as the features of the HTTP infrastructure are used directly. For SOAP, HTTP is only one of many possible transports (though its the one that is predominantly used). SOAP can accommodate many additional features like message level security, multi-node processing, etc. but this extensibility comes at the price of additional overhead.
REpresentational State Transfer, is a methodology to perform web application "actions". these actions could be GET, PUT, POST, DELETE, HEAD etc. In your web application if you're looking to gather some data back from a web resource, you'd want to use GET request. REST provides CRUD (create update delete) functionality through form actions. For intstance in order to add a record, you'd use PUT request and POST for update, DELETE for removing (or signaling to remove). It's much lightweight and easier to implement REST than SOAP request. It's less organised too, you might want to check AJAXPATTERNS.ORG website to learn a bit more about this methodology/pattern.