Learning Video on Creating basic WCF REST Service

Full source code for your reference is as below, IService1.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace WcfService3 { [ServiceContract] public interface IService1 { [OperationContract] [WebGet] string GetDataUsingMethod(string value); [OperationContract] [WebGet(UriTemplate="/GetData/{value}")] string GetDataUsingURI(string value); } } Service1.svc.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; … Continue reading Learning Video on Creating basic WCF REST Service

Self Hosted WCF REST Service or Hosting WCF REST Service in Console Application

Objective In this article, I will show you 1. How to create a REST based service? 2. How to host a REST based service in Console application? 3. How to consume a REST Service at client? Follow the steps as below, Step1 Create a New project. Select Console application as project type. Step 2 Add … Continue reading Self Hosted WCF REST Service or Hosting WCF REST Service in Console Application