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 and the fly likes Can WSDL have both Document style and RPC Style ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Can WSDL have both Document style and RPC Style ?" Watch "Can WSDL have both Document style and RPC Style ?" New topic
Author

Can WSDL have both Document style and RPC Style ?

lavnish lalchandani
Ranch Hand

Joined: Feb 28, 2007
Posts: 78
Hi
As per my knowledge in a WSDL
A message part may declare either a type attribute or an element attribute, but not both. Which to use depends on the kind of messaging you're doing. If you're using RPC-style messaging, the part elements must use the type attribute; if you're using document-style messaging, the part elements must use the element attribute

Is a WSDL like this valid ?

<!-- message elements describe the input and output parameters -->
<message name="GetBookPriceRequest">
<part name="isbn" type="xsd:string" />
</message>
<message name="GetBookPriceResponse">
<part name="price" type="xsd:float" />
</message>
<message name="InvalidArgumentFault">
<part name="error_message" element="mh:InvalidIsbnFaultDetail" />
</message>
</definitions>

here GetBookPriceRequest & GetBookPriceResponse seems to be in RPC style and Fault seems to be in document style
 
I agree. Here's the link: jrebel
 
subject: Can WSDL have both Document style and RPC Style ?
 
Similar Threads
wsdl namespace confusing
web service explorer testing Web service gets right return value, java client gets wrong value
Exception in WSDL2Java
document Vs rpc message styles
Document Style Web Service Message Definitions