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.
- 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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.