Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ritchi roy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic