WCF has been my focus for a week or so now and I have not seen many "how to just get something up and running quickly" articles out there. So figured I'd write one. This is a step by step guide of how to get a self hosted WCF "Echo" application up and running in as few steps as possible. In terms of services, for me anyway, the "Echo" service has replaced the "Hello World" service in that it returns what you sent, a little more useful in a service that returning nothing to the caller.
I'll be doing this in C# 2.0, which is required by WCF, and I assume that you're using Visual Studio 2005 – however, this will work just as well using any of the express products and even just Notepad and a compiler. I also assume that you already have WinFx on your machine (installed by default on Vista and you can get it from here if you're working in XP).
On with the show, here's a 20 step guide which should take you about 10 minutes to get up a running. I'll also be using this as the base implementation for future articles (more...)