Tag: REST service
-
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.…
-
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…
-
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…
-
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…
-
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…
-
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…
-
WCF REST Service with JSON Data
In this post I will show you working with WCF REST Service with JSON type of Data. I will discuss both POST and GET operation on data type JSON . Creating Service I have written much post on creating basic WCF REST Service. Please refer them if required. WebGet Method Let us create a Get…
-
Hosting WCF REST Service in IIS with HTTPS
In earlier post I discussed Exposing WCF REST Service over HTTPS. Major limitation on service created in last post was its self-hosted nature. In this post, I will take same service forward and host in IIS. So at the end of this post, you would able to host WCF REST Service in IIS with HTTPS.…
-
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…
-
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…