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 (varContinueContinue reading “Video tutorial on Consuming WCF Data Service”
Author Archives: Dhananjay Kumar
Video tutorial on returning image from WCF REST Service
Full article about this video can be read here #mce_temp_url#
Video Tutorial on Introducing WCF Data Service
WCF Instance Management PPT
WCF Instance Management PPT
ABC of WCF End Point
ABC of WCF End Point
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;ContinueContinue reading “Learning Video on Creating basic WCF REST Service”
PPT on WCF Data Service
Download the PPT for introduction to WCF Data Service WCF Data Service an Introduction
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 AddContinueContinue 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?ContinueContinue reading “Uri Template in WCF REST Service Part#1”
Presentation on Introduction of WCF
WCF Introduction