An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

John Reynolds' Tech Blog

RSS Dot Net

Recently, I was on a project which required creating an RSS 2.0 feed using Java, which essentially amounted to mapping our data entities to the appropriate fields in the RSS xml spec. More generally, I want to be able to somehow turn any List of Stuff into an RSS feed easily.

Lo and behold, in VS2008, WCF has a 'Syndication Service Library' project type, which has entities already created for feeds (and can do RSS 2.0 or ATOM with no problem).

I decided to create a 'ISyndicatable' interface to tack on to any data entities I might want to make feeds out of, then translate my ISyndicatable entities to SyndicationItem objects when the feed is requested.

What do you think of this design, what do you do for creating feeds generically?

Published Wednesday, January 16, 2008 6:43 PM by johnrey

Comments

No Comments
Anonymous comments are disabled

This Blog

Post Calendar

<January 2008>
SuMoTuWeThFrSa
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

Post Categories

Syndication