Welcome to Windows Communication Foundation (WCF)
Top Tasks :

WCF Team Bloggers

WCF-based Syndication Endpoints for OhmBlog

DasBlog has asmx-based syndication endpoints for RSS and Atom (at http://www.gazitt.com/blog/SyndicationService.asmx/GetRss and http://www.gazitt.com/blog/SyndicationService.asmx/GetAtom , respectively). I added parallel syndication endpoints based on WCF, using the SyndicationFeed classes we're going to preview in an upcoming Orcas CTP. The endpoints are at http://www.gazitt.com/blog/SyndicationService.svc/rss/GetFeed and http://www.gazitt.com/blog/SyndicationService.svc/atom/GetFeed , respectively. One cool thing is that all I had to do was define one service contract which returns SyndicationFeed, and expose it on two separate WCF POX endpoints (/atom and /rss), each with a different endpoint behavior (which serialize the SyndicationFeed as Atom and RSS, respectively). One implementation, two different serialization formats. This may not be the final design for the feature (since Atom and RSS are different enough that creating a single API for both isn't trivial), but it was still a fairly trivial exercise to port the dasBlog Atom implementation to SyndicationFeed. I'll post the code when I get a chance... Read More...
Published Sunday, January 14, 2007 10:25 PM by OhmBlog

Comments

No Comments
Anonymous comments are disabled

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us