0

What is the best way to create an .net rest service including the endpoint, operationcontract and data binding from a config file?

The config file includes for instance:

  • Endpoint: www.cars.com
  • OperationContract
    • GetCarFuel
    • GetCarHorsePower
  • Data binding:
    • GetCarFuel should use or return the dataContract CarFuel
    • The same for GetCarHorsePower
user2644964
  • 763
  • 2
  • 10
  • 28
  • Just google it: http://www.codeproject.com/Tips/803009/Configure-WCF-Service-to-REST or http://stackoverflow.com/questions/186631/rest-soap-endpoints-for-a-wcf-service or http://www.topwcftutorials.net/2013/09/simple-steps-for-restful-service.html – SalientBrain Nov 25 '16 at 13:24
  • Thank you for the link. I read the article but the author didn't use a config to generate the endpoint and operation contracts. – user2644964 Nov 25 '16 at 19:06

0 Answers0