Tuesday, 16 July 2013

WCF Self Hosting with Example and Source Code


Windows Communication Foundation (WCF) is a programming interface as part of .NET Framework.

Using 3 types we can host service in WCF
1          1. Self-Hosting
2           2 .IIS Hosting
3          3. WAS

In this article I will tell you how to create WCF Service and how to host using self-hosting and how to consume this service in Web Application. In this article I will discuss about self-hosting your WCF Service, because it’s the most flexible and easiest way to host WCF services. Another way to host WCF Service is using Internet Information Services(IIS). IIS will be explained in my other article.

Download Source Code

Part-1   Create the Service

Open Visual Studio 2010 

Step 1: Select the new Empty Solution and give name WCFProject.