Introduction to WCF Data service and ODATA

You can see video tutorial of this article Creating WCF Data Service Consuming WCF Data Service WCF Data Service, Project Astoria, OData and ADO.Net Data Service are same thing. What is ODATA? · ODATA is HTTP or web protocol to querying or manipulating data. · ODATA uses HTTP, JOSN or ATOM. · ODATA can beContinue reading "Introduction to WCF Data service and ODATA"

Video tutorial on Consuming WCF Data Service

Source code using System; using System.Collections.Generic; using System.Linq; using System.Text; using secondClient.ServiceReference1; using System.Data.Services.Client; namespace secondClient { class Program { static void Main(string[] args) { DataServiceContext context = new DataServiceContext (new Uri("http://localhost:3803/WcfDataService1.svc/")); StudentDBEntities studentDbEnt = new StudentDBEntities (new Uri("http://localhost:3803/WcfDataService1.svc/")); #region Get all the Records var res = from r in studentDbEnt.Students select r; foreach (varContinue reading "Video tutorial on Consuming WCF Data Service"

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 AddContinue 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"