• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

how a client will generate its stub automatically witgout a WSDL file

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Rest web service and while learning it a question strikes me,
In SOAP based web service, WSDL is act as a contract between client and service provider, so, Client will know how to interact with service provider by reading the WSDL file and create a client which is highly capable of interacting with service provider. To my understanding, in Rest web service we don't have WSDL so how a client will generate its stub automatically?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what you are thinking of here.

REST is an architectural style, not a messaging API. Furthermore a RESTful service is completely wide open as to what resources it can manipulate so there is no generic REST client structure. At one time there was an effort to create a WSDL like descriptive language for RESTful services but generally the publisher of a REST style service provides a text description and example code for client users.

Bill
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:I'm not sure what you are thinking of here.

REST is an architectural style, not a messaging API. Furthermore a RESTful service is completely wide open as to what resources it can manipulate so there is no generic REST client structure. At one time there was an effort to create a WSDL like descriptive language for RESTful services but generally the publisher of a REST style service provides a text description and example code for client users.

Bill



Ya you are rite, but in my view, Rest client should not know all the service details which its supposed to use and if the provider modify any of its services then the client has to be informed rt?. so it will create tight dependency between client and service provider rt?
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic