• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

RPC/Literal vs Document/Literal

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am not very clear on understanding the difference between RPC/Literal vs Document/Literal (Wrapped).

II am using Top Down approach by writing the wsdl first and then generating the java code using wsdl2java utility provided by cxf.

When i published the web service using Document/literal (wrapped) the soap message looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:unw="http://www.example.org/Unwrapped/">
<soapenv:Header/>
<soapenv:Body>
<unw:add>
<part1>?</part1>
<part2>?</part2>
</unw:add>
</soapenv:Body>
</soapenv:Envelope>

where add is the name of the part inside the message tag in the wsdl. As per documentation the part name MUST be same as the Method name in wrapped Document/Literal

But when I use the RPC/Literal the soap message looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rpc="http://www.example.org/rpcLiteral/">
<soapenv:Header/>
<soapenv:Body>
<rpc:add>
<parameters>?</parameters>
</rpc:add>
</soapenv:Body>
</soapenv:Envelope>

where add is the method name.

I am not sure what exactly is the difference between them. Both RPC/Literal and Document/Literal (wrapped) has the Method name as the first child of the Body ( As per documentation the part name MUST be same as the Method name in wrapped Document/Literal). As I am able to create complexTypes in the <types><schema..> section for both RPC and Document (wrapped), so my question is what exactly is the diffence between them?

regards,
khan
 
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 Khan,

You are not the only one who is confused totally on this. You can include me .

Now, read this post. One gentleman had the same question

Few more good links

http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
http://www.eherenow.com/soapfight.htm
 
Don't listen to Steve. Just read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic