using System;
using System.Web;
using System.Xml;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Web.Script.Services;
namespace RSSReader
{
[WebService(Namespace = "http://www.ADefwebserver.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class RssService : System.Web.Services.WebService
{
[WebMethod]
public List<RssToolkit.Rss.RssItem> GetRSSFeed(string RSSUrl)
{
RssToolkit.Rss.RssDocument rss = RssToolkit.Rss.RssDocument.Load(new System.Uri(RSSUrl));
return rss.Channel.Items;
}
}
}