Wednesday, March 13, 2013

SOAP & REST -Distributed Computing

SOAP vs REST
http://www.youtube.com/watch?v=v3OMEAU_4HI




SOAP

There are generally two kinds of SOAP implementation.
SOAP over HTTP/ SOAP over JMS


Performance of SOAP/HTTP vs. SOAP/JMS


J2ee environment asynchronous processing can be achieved using a Queue in the middle. When a webservice needs to be asynchronous it is SOAP over JMS instead of SOAP over http/https. The endpoint url looks different when it is a asynchronous webservice . It has information like the queue factory embeded in it. You can refer the below link to do this .

Alternatively you can code a regular webservice (SOAP over Https) and have the webservice just post the message on to queue. The business logic can then reside in the MDB. Though this approach is not truely synchronous , the time the client has to wait for a response is very negligible as the webservice does nothing more than just post the message on to a queue. The webservice can just return a empty respose if you decide to have generic faults like service unavailable.

SOAP over JMS

No comments:

Post a Comment