wood burning stoves*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
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: 79
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: http://aspose.com/file-tools
 
subject: Can WSDL have both Document style and RPC Style ?
 
Similar Threads
document Vs rpc message styles
web service explorer testing Web service gets right return value, java client gets wrong value
wsdl namespace confusing
Exception in WSDL2Java
Document Style Web Service Message Definitions