svc
public class WCFRestfulService : IWCFRestfulService
{
public string GetServiceName(int Id)
{
return "This is a WCF Restful Service";
}
}
Interface
[ServiceContract(Name = "WCRestfulService ")]
public interface IWCFRestf...
Minimal requirements for WCF service is one ServiceContract with one OperationContract.
Service contract:
[ServiceContract]
public interface IDemoService
{
[OperationContract]
CompositeType SampleMethod();
}
Service contract implementation:
public class DemoService : IDemoService...