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

Enabling Help page for REST Service in WCF 4.0

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 enable Help page for REST Service? Follow the steps as below, Step1 Create a New project. Select Console application as project type. Step 2 Add … Continue reading Enabling Help page for REST Service in WCF 4.0

Uri Template in WCF REST Service Part#1

Objective This article will give explanation about UriTemplate class in WCF REST Service. We will see how UriTemplate class helps us to construct the URI for the methods. UriTemplate class This class is used to construct URI for the methods in WCF REST Service. It is inside the namespace System.ServiceModel.Web. UriTemplate class How it works? … Continue reading Uri Template in WCF REST Service Part#1

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