• 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

Pros and Cons of Procedural Style WS and Document Style WS

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic