This is my first attempt at creating a web service using REST and .NET. The easiest thing I could come up with was to implement the IHttpHandler interface and add my custom processing logic to the ProcessRequest method. The ItemManager class contains my XML data that I am returning to the client.
I still need to work out a couple of kinks. In order for a request to be processed by my custom handler, the URI needs to end with “.rest”. I haven’t been able to have an extensionless URI processed by a custom handler. I also haven’t experimented with using an HTTP POST to submit data to my web service. Currently it only returns data. As I figure these things out, I’ll try and post my solutions.