Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
jacob deiter
Ranch Hand
Posts: 587
  • Mark post as helpful
  • send pies
  • 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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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: 587
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!