wood burning stoves 2.0*
The moose likes Web Services and the fly likes wsdl says binding style document , can client be of rpc style ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl says binding style document , can client be of rpc style ?" Watch "wsdl says binding style document , can client be of rpc style ?" New topic
Author

wsdl says binding style document , can client be of rpc style ?

ritchi roy
Greenhorn

Joined: Dec 15, 2009
Posts: 1
I have a very basic question ,
if we have in wsdl , soap:binding style="document" , does it mean that the web service provider is expecting a document style request from the consumer and will
return document style response ? or the consumer can use any style (rpc / document) .

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If the binding style in the WSDL is Document, then the client also needs to use this style.
Very roughly, a WSDL can be thought of as a Java interface. It tells clients how to interact with the web service.
If a Java interface contains a method that takes an integer parameter, then you will not succeed if you try to call that method with a string parameter.

Here http://www.w3.org/TR/wsdl#_soap-b you can find examples of SOAP messages using Document and RPC style.
Here is another article comparing the styles: http://searchsoa.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid26_cid494324,00.html
The above references are given to illustrate the differences between Document and RPC style.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsdl says binding style document , can client be of rpc style ?
 
Similar Threads
SOAP Vs REST
Query regarding RPC/Document Style,WSGEN and WSIMPORT
[ERROR] More than one part for message AddRequest
reading soap-envelop messages
RPC X Document - WSDL binding style.