views:

149

answers:

0

Hi,

i have created new WCF Syndication Service Library in Visual Studio to publish web content in RSS 2.0 and ATOM formats. If i open xml feeds in IE it works ok and shows it human-friendly. In firefox works only with ATOM. RSS feed it show as an ordinal XML file.

    [ServiceContract]
    [ServiceKnownType(typeof(Atom10FeedFormatter))]
    [ServiceKnownType(typeof(Rss20FeedFormatter))]
    public interface INewsFeed
    {

        [OperationContract]
        [WebGet(UriTemplate = "*", BodyStyle = WebMessageBodyStyle.Bare)]
        SyndicationFeedFormatter CreateFeed();

    }