File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Pros and Cons of Procedural Style WS and Document Style WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Pros and Cons of Procedural Style WS and Document Style WS" Watch "Pros and Cons of Procedural Style WS and Document Style WS" New topic
Author

Pros and Cons of Procedural Style WS and Document Style WS

Ravi C Kota
Ranch Hand

Joined: Jan 29, 2008
Posts: 61
Hi All,

I know that this question has been asked a million times in one way or the other (Myself asked this question in the past :-)). While reading the last chapter of Ivan's notes (Endpoint Design and Architecture), the author says


The entire payload of a (SOAP) request must be validated.
With procedure-style (RPC) web services, elements wrapping the RPC data does not appear
in any XML schema. This prevents validation of the payload to a procedure-style service.


Assuming that we started contract first approach, we specify the style as "RPC" and we start working on service and clients, don't we need to make sure that the body of the SOAP envelope has elements declared such a way that they can be validated against some schema. What is wrong with that? Would not that be a good idea at all, at the first place? What does the author would have meant by saying that RPC data does not appear in any XML Schema. Or am I getting confused with JAX-RPC vs RPC style of WS in JAX-WS.



Thanks & Regards, Ravi C.Kota
SCJP 5.0, OCDJWS 5.0
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Hi Ravi,

As time passes by, I come to the conclusion that Document Style WS is the natural style, whereas RPC tried to make some short-cuts and by doing so, many aspects of the web service got too complex. Not sure if it answered your question .

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pros and Cons of Procedural Style WS and Document Style WS