Discussions

XML & Web services: Difference between Message and RPC based Web Services ?

  1. Hi All

    I have often come across the two terms Message based Web Services and RPC Based Web Services. Would any of you be able to define the difference for me ?

    I think RPC is simply a stateless web service and Message based is stateful (i.e. it includes different id's in the xml which correlate to specific state held by the application). Is that correct ?
  2. In my opinion, the difference is only in how the Web service is called: in RPC based the methods in a Web service are called through a RPC, i.e. in a synchronous way through a specific port and protocol, in Message based Web Services the methods are called through an HTTP request using SOAP.
  3. Nice article....

    http://www-106.ibm.com/developerworks/library/ws-docstyle.html

    Cheers
    --Venky
  4. Could someone provide us with an example of each ? i.e.
    [web service] <-- synchronous --> [web service] = RPC
  5. Have you looked at the demo in OTN site? This uses Document style as well as RPC style web services...

    Demo can found at
    http://otn.oracle.com/sample_code/tech/java/j2ee/jintdemo/content.html

    And the tutorial for the same can be found at
    http://otn.oracle.com/sample_code/tech/java/j2ee/jintdemo/tutorials/webservices.html

    Cheers
    --Venky
  6. RPC-based web service is similiar to synchronous processing, whereas the msg-based service is moreorless asynchronous.

    Hope it helps..