• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RPC v Document style

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Just reading through the excellent Ivan A Krizsan notes

https://coderanch.com/how-to/content/Exam-Objectives-5.pdf and the messaging modes RPC/Literal and Document/Literal style, he makes the point RPC is usually used to expose existing components as web services?

Why is this? Surely Document style could also be used?

Any comments?



 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Luke,

he makes the point RPC is usually used to expose existing components as web services


This is because existing components might have been designed without keeping in mind of potential future exposure as web services, they might well contain "overloaded" methods. As typical RPC style SOAP message relies on dispatching SOAP message based on "method" name, it'd would confuse Web Service API to which method it should dispatch incoming input request.

On the otherhand, Document style SOAP message replies on "order and type" of the arguments to dispatch incoming input request. Unless you are sure existing code doesn't have overloaded methods, you shouldn't use this style to expose as Web Services. Note that "operation overloading" is already NOT allowed by WS Basic Profile 1.0.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I just want to add that the latest version of my study notes can be found at: http://www.slideshare.net/krizsan/scdjws-5-study-notes-3085287
The version on JavaRanch is not up to date.
Best wishes!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic