Posts

Showing posts from January, 2011

WCF Rest Services: Part 1 -- Getting Started

Image
In this blog post, we'll walk through building a WCF Rest service in C# 4.0, from setup to deployment. Without further adieu, let's begin! To get started, it's assumed you're working in .Net 4.0 and that you have some experience with C#.net programming. Open your visual studio IDE, select Tools --> Extension Manager --> Online Gallery --> Templates --> WCF --> WCF REST Service Template 40(CS) [at the time of this posting, the template is not available in the Express Edition]. Install the template (which will give it a Green Check): After installing the template start a new project by selecting Web --> WCF REST Service Application. Create the project in a logical location on your drive and name the project PublisherService: The default project will show an object called "Sample Item" and will also give examples of ways to interact with the object using the service. This is a great thing to know and study, but for our purposes, we will b...