Building an RSS feed service

Nowadays, Syndication (commonly known in the form of RSS or ATOM feeds) is widely used over the Internet for websites or personal blogs to expose or integrate data and resource through a highly interoperable format.

Ever since .NET framework 3.5, WCF has added support for building Syndication service through standard WCF service development framework. We can build either an RSS (or an ATOM) or even a custom feed service by creating a WCF service and operations.

In this recipe, we will show you how to build a simple RSS 2.0 feed through WCF Syndication feature.

How to do it...

Here are the detailed steps to create the sample RSS 2.0 feed.

  1. Define a ServiceContract for the RSS feed service.

    The first thing to do for building ...

Get Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.