• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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) .

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic