How To Define A Service As REST Based Service In WCF

How To Define A Service As REST Based Service In WCF


  • 16 Jul, 2012

    Need more details.

    Comments Received:
    Please give your suggestions and feedback:
  • 26 Feb, 2012

    WCF 3.5 provides explicit support for RESTful communication using a new binding named WebHttpBinding.The below code shows how to expose a RESTful service[ServiceContract]interface IStock{[OperationContract][WebGet]int GetStock(string StockId);}By adding the WebGetAttribute, we can define a service as REST based service that can be accessible using HTTP GET operation.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.