How to define a service as REST based service in WCF?

  1. [ServiceContract] interface IStock { [OperationContract] [WebGet] int GetStock(string StockId); }

  2. [ServiceContract] interface IStock { [OperationContract] [WebInvoke] int GetStock(string StockId); }

  3. a and b

  4. None


Correct Option: C

Find more quizzes: