• 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 vs Document/Literal

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I googled and understood some concepts regarding the above approach. Can anyone tell me if I am right or wrong?

1). RPC approach

-->Input and Output to the web service(In the soap request/response) is a method name and parameters.
-->Cannot validate the request to the web service

2).Document/Literal approach:

-->Input and Output to the web service are XML messages.
-->Can validate the SOAP Request with an XML Schema.

Thanks.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just want to make sure before I get into the testing stuff coz am a complete novice to this.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arjun,

The cheerful page Soap Fight: RPC vs. Document supports your summary.

Regards,
Dan
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Dan for the link. I am just trying to find out if what I understood is correct. is it?/

Thanks.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Arjun Reddy:
I am just trying to find out if what I understood is correct. is it?



You aren't quite there yet. Here are some nits
  • You can't compare RPC and Document/literal. You can compare messaging styles (RPC vs Document), encoding styles (encoding vs literal), or messaging modes (e.g. RPC/literal vs Document/literal)
  • "Cannot validate the request to the web service" - should most likely be Cannot validate message payloads with XML Schema. Document/literal payloads can be validated entirely through XML schema, RPC/literal payloads have to take the WSDL's message composition rules into account (so the validator would have to be WSDL aware), and the encoding of RPC/encoding is outside of the scope of XML Schema and WSDL.
  • You are not considering the the "Wrapped Document/literal" convention which describes an informal RPC-oriented payload document format that is fully validatable through XML. It's just not being that honest about being "RPC".


  • I've always found these useful:
    Which style of WSDL should I use?
    wrapped document/literal convention
    reply
      Bookmark Topic Watch Topic
    • New Topic