| 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
Bartender
Joined: Oct 04, 2006
Posts: 2194
|
|
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!
|
 |
 |
|
|
subject: wsdl says binding style document , can client be of rpc style ?
|
|
|