This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RPC v Document style

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Just reading through the excellent Ivan A Krizsan notes

http://www.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?



 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic