Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

Creating and consuming Rss/Atom syndication feed using WCF 3.5


 

The .NET Framework did not provide any built-in functionality for creating or consuming syndication feeds until version 3.5 with the introduction of the System.ServiceModel.Syndication namespace. The most germane class in this namespace is SyndicationFeed. As you can probably guess from its name, this class represents a syndication feed. It has properties like Title, Description, Links, and Copyright, which provide details about the feed. The content items that make up the feed are specified via the Items property, which is a collection of SyndicationItem objects. The SyndicationFeed class also has a static Load method that parses and loads the information from a specified RSS 2.0 or Atom 1.0 syndication feed.

In addition to the SyndicationFeed and SyndicationItem classes, the System.ServiceModel.Syndication namespace also includes two formatter classes, Atom10FeedFormatter and Rss20FeedFormatter. These classes take a SyndicationFeed object and generate the corresponding XML content that conforms to either the Atom 1.0 or RSS 2.0 specificiations.

More… How to create a syndication feed for your website

About these ads

February 23, 2009 - Posted by | WCF

2 Comments »

  1. [...] Creating and consuming Rss/Atom syndication feed using WCF 3.5 … [...]

    Pingback by Second « MyPublisher | April 14, 2010 | Reply

  2. [...] How to create a syndication feed for your website (good introduction by Vincent Leung) [...]

    Pingback by SyndicationFeed in WCF 3.5 Tutorials: Getting Started | tutorials blogs | November 14, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: