Exposing WCF REST Service over HTTPS

In this post, I will explain; how could we expose a WCF REST Service over secure HTPP (HTTPS)? Essentially there are three steps involved 1. Create a certificate or use a third party provided certificate 2. Configure HTTPS in IIS 3. Configure webHttpBinding to use transport level security Create Certificate To expose a service over … Continue reading Exposing WCF REST Service over HTTPS

Getting current Authentication information on WCF REST Service

Sometime you may have a requirement to tell your client what type of authentication scheme you are applying on your WCF REST service. In this post I will show you, “How could you expose authentication scheme information as part of your service? “ To start with let us create Self Hosted WCF REST Service. Besides … Continue reading Getting current Authentication information on WCF REST Service

Uploading File to server from ASP.Net client using WCF REST Service

Very often I see one question flooding in all forums, “How to upload a File using WCF REST Service? “, so I thought let me write a post on the same. Essentially, there is nothing specific to do to upload file, but the below steps 1. Create a service with Post operation 2. Pass file … Continue reading Uploading File to server from ASP.Net client using WCF REST Service

WCF 4.0 Features: Part #1

WCF 4 comes with many of new features for better developer experience. There is high integration with workflow service. Making WCF REST service more developer friendly and Configuration less WCF service. In short WCF 4 tries to address common scenario easily and at the same time gives us more options to communicate in between service … Continue reading WCF 4.0 Features: Part #1

Walkthrough creating REST Service in WCF 4.0

Objective This article will explain step to step explanation of, how to create a REST based service and how to consume that in a managed client. Step 1` Create a new project as WCF Service application type. Step 2 Delete all the default code from IService.cs and Service.svc.cs Now open Web.Config file and delete <system.serviceModel> … Continue reading Walkthrough creating REST Service in WCF 4.0

Removing .SVC from WCF REST Service

I got a mail asking question, “How could we remove .SVC from a WCF REST Service? “ For example, instead of We need to remove, .svc extension from address of the WCF service. Let us say, you have a WCF REST Service up and running http://localhost:58230/Service1.svc/GetMessage With output Read here: How to create a WCF … Continue reading Removing .SVC from WCF REST Service

Consuming WCF REST Service in ASP.Net Web Site

Objective This article will give a quick walkthrough on how to consume a WCF REST Service in ASP.Net Web site. 1. Create a WCF REST Service. 2. Consume the Service in ASP.Net Web Site Create a WCF REST Service Step 1 Create a WCF application. To create a new application File -> New -> Web-> … Continue reading Consuming WCF REST Service in ASP.Net Web Site

WebServiceHost : Hosting a WCF REST Service

Objective In this article, I will explain 1. What is WebServiceHost Factory class? 2. What is its function? 3. Where to use it? 4. One sample on hosting WCF REST Service using WebServiceHost. What is WebServiceHost factory? 1. This is useful to host WCF REST End points. 2. This is derived from ServiceHost. 3. WebServiceHost … Continue reading WebServiceHost : Hosting a WCF REST Service