How to create WCF RESTful Service.

In my earlier blog, I have explained about REST and SOAP.In this blog, I will continue WCF tutorial sections. See a list of topic in WCF tutorial here.REST is the short form of Representational State Transfer. REST says each resource should be accessed by URI. How to create a RESTful WCF service. First, create a … Read more

What is Xml Serialization

In this blog, we will see XML Serialization and its implementation using C# code. Lets first understand Serialization. Serialization is the process of converting an object into a format that can be transferred over the network. What is XML Serialization? XML Serialization is the process of converting an object into XML file which is easy to read … Read more

Understanding WCF Bindings

Binding describes that how a client will communicate with WCF service. It tells that what protocol will be used to communicate, as WCF supports various protocols like HTTP, TCP, MSMQ, Named Pipes. Binding determine transport protocol i.e. TCP, HTTP, message exchange format i.e. plain text, XML You may go through to my earlier blogs to … Read more


In this article, we will focus on ABC of WCF which is the core of WCF service endpoints. This is one of the most important interview question also. What is ABC of WCF?  WCF service comes into existence with a valid Endpoint.  An endpoint consists of 3 major components. These components are generally refer as … Read more

First WCF Service Application – WCF Tutorial

In this blog, I will be creating a WCF service application project. If you want to learn WCF from the beginning, please read my earlier blog. Let’s create the first WCF Service Application To create a WCF project open Visual Studio 2012 and select File->New Project. Click on WCF from an installed template (Left area) … Read more

Fault Contract in WCF – WCF Service Tutorial

In this article, we will see how to implement Fault Contract in WCF. In typical ASP.Net code we use try catch block to manage exception, but in WCF Fault Contract is used handle exception so that reason of error can reach to the client. WCF Fault Contract If you are new to WCF Contracts, please … Read more

Message Contract in WCF – WCF Service Tutorial

If you are new to WCF Service, please read my earlier blogs. WCF Introduction and WCF Contracts As we know the default message protocol in WCF is SOAP. Message contract is used to define the SOAP structure. As we know SOAP has Envelope, Header, and Body.  So if you want control over SOAP then you must … Read more

Data Contract Serialization and De-Serialization – WCF Service Tutorial

Serialization is the process of converting an object to transferable data format. By default WCF uses DataContractSerializer. And vice-versa process is called De-Serialization.       public class Product     {         public int  ProductID         {             get;set;         }           public string ProductName         {             get;set;         }           public string ProductSeller         {             get;set;         }           public decimal ProductCost         {             get;set;         … Read more

Data Contract in WCF

In my earlier blog, I wrote about Other Contracts. Please refer this link Contracts in WCF Learn Data Contract It is used to define the data which will be exchanged between client and server. A simple Data Contract with Data Member will look like this. [DataContract] public class Product {     private int _ProductID;     … Read more