Enable .NET 3.5 goodies in IIS vdir

Some of you may be oddballs like me:  you like .NET, you program in .NET, but you don’t always use Visual Studio.   You hand-code everything for some applications.  You often open up a text editor and just start writing a source module, with no wizards, no project templates, etc.  You hand-code your MSbuild files.  You…

2

REST in WCF: Varying response content type based on HTTP Request Headers

Damian Mehers made a comment on my blog post from April, but I felt it was worth a full reblog. Damian’s used the same WCF extensibility points I used to produce some boilerplate that varies the response content type from JSON to XML, based on the Accept or Content-Type header of the GET request.  He extends WebHttpBehavior to…

7

It just got easier to build REST apps in .NET

The REST starter kit that we launched at PDC is now live! :: http://www.msdn.com/wcf/rest . The WCF REST Starter Kit is a set of features, Visual Studio templates, samples and guidance that help people build REST apps using WCF.  WCF, part of the .NET Framework, got some enhancements for REST support in the .NET 3.5 release.  This…

1

How to Build REST apps on .NET using WCF

There’s a new screencast series on building services using the WCF part of .NET.  The first few are already available.  The first one is the basic “Hello World” example, the next couple cover REST:   How to build a WCF Service using Visual Studio 2008, and .NET 3.5. (10 minutes) Creating a HI-REST GET Service…

1

REST Q & A – enough already

Tim Bray at Sun has some questions and comments on REST. First, let me say that the religious wars over WS-* and REST seem to be generated by a very small number of people who have a very large amount of spare time. Don’t these people have things to do?  Can it possibly be enlightening or…

9

Varying Content-Type according to the URL in a WCF REST Service

My buddy Justin wrote about how to set the Content-Type headers in a WebGet method in a WCF REST app. Doing this would allow each WebGet method to specify its own Content-Type at runtime.  After I summarized how to build a WCF REST app in a post a couple weeks ago, Kyle Beyer asked if there…

8

Why choose WCF for REST?

Chuck, in a comment on a previous post, posed this question:  Why choose WCF for a REST app?  Here it is in full context: I’m having a hard time justifying why I would use WCF for REST. It seems dead simple in ASP.NET (or any other web framework), yet obscure in WCF. There are two…

2

MySpace, and Content-Type Negotiation in REST using WCF

Hah!   followup on a hot topic. I posted earlier on content-type negotiation in REST with WCF.   My buddy Vittorio wrote about MySpace’s kiss-and-tell episode at Mix08.  MySpace has exposed a REST interface for the MySpace resources – see http://developer.myspace.com for more info – and the designers talked about their experience at the MIX08 conference…

1

Content-Type negotiation and REST (and how WCF fits in)

Just had a comment-exchange on my prior post on How to build a REST app in WCF. I thought I would reproduce and elaborate on it a bit here, in a post. Kyle Beyer asked how to make WCF honor a content-type header (Accept header) in the request, and then modify the result of the…

14