How to Self-Host ASP.Net Web API: Part 3 of Many

Creating First HTTP Service using ASP.NET Web API: Part1 of Many Consuming ASP.NET Web API Service using HttpClient: Part2 of Many In this post, we will step by step walkthrough that How to Self-Host ASP.Net Web API. We are going to host Web API in a console application. To do that creates a Console Application. … Continue reading How to Self-Host ASP.Net Web API: Part 3 of Many

Consuming ASP.NET Web API Service using HttpClient: Part2 of Many

Read Part 1 Here I am in love with ASP.NET Web API hence I started writing on the same. In first part of this blog series I have written Creating First HTTP Service using ASP.NET Web API: Part1 of Many. In this post I will show you how you could consume service created in previous … Continue reading Consuming ASP.NET Web API Service using HttpClient: Part2 of Many

Creating First HTTP Service using ASP.NET Web API: Part1 of Many

In this post I will give you basic understating of creating HTTP Services using ASP.NET Web API. Here I am assuming that you are aware of basic ASP.NET MVC. To work with ASP.NET Web API, you need to install ASP.NET MVC 4.0. Download ASP.NET Web API from here and install it from Web Installer. After … Continue reading Creating First HTTP Service using ASP.NET Web API: Part1 of Many

How to create WCF REST Service and host in Windows Azure

In this post, we will create a WCF REST Service and host in Windows Azure. We will learn following things in this post Working with WCF Web Role Enabling REST on WCF Web Role Returning XML and JSON from REST service Deploying WCF Service Web Role to Windows Azure We need to host WCF Service … Continue reading How to create WCF REST Service and host in Windows Azure

How to enable REST and SOAP both on the same WCF Service

In this post I will show you, how to create a WCF Service with both flavor of SOAP and REST paradigm . For purpose of this post , I am going to create a Calculator Service with following characteristics Serivice will have both SOAP and REST enabled REST Service will have JOSN Message format In … Continue reading How to enable REST and SOAP both on the same WCF Service

Calling WCF REST Service with Basic authentication from Windows Phone 7

Today while working I came across a requirement to consume a REST Service. To consume REST Service application had to provide username and password. Initially I thought it should be easier task and I tried consuming REST Service as below, In completed event accessing returned data as below, When I tried running application I got … Continue reading Calling WCF REST Service with Basic authentication from Windows Phone 7

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