REST Services

This category contains 27 posts

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 »

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 »

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 »

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 … Continue reading »

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. … Continue reading »

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 »

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 »

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 »

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 »

Download PDF on Walkthrough creating REST Service in WCF 4.0

Walkthrough creating REST Service in WCF 4

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 »

Download PPT on WCF REST for developers

RESTDEMO

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 »

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 »

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 »

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,380 other followers

Tweets

Categories

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my current or previous employer's view in anyway. © Copyright 2012