Click here to Skip to main content
Click here to Skip to main content

RSS Feed Server

, 11 Mar 2008
Rate this:
Please Sign up or sign in to vote.
Creating a RSS Feed Server using .Net

RSS FEED SERVER - (Explained !!)
(For all the girls who needed explaination)

Download RSSFeedService.zip - 899.12 KB

Introduction

RSS Feed Server allows organizations and individuals who are behind firewall and proxy. And in many cases users tend to not have internet access in different organizations. But for intranet or any other application they are using, if they want to subscribe to RSS, this server will help you expose those rss feeds from internet to your local users who dont have internet access.

Application Structure

image001.gif

As can be seen from above, corporate which have policy to restrict users from going on to internet will be of interest to this application design.

It has 2 major components

  • RSS Feed Service
  • RSS Feed Controller

The service simply put has 2 major roles. First it reads off a table list of URL of RSS Feeds. It pulls it down from internet and save it on a shared virtual folder of an IIS Server Hosted. This enables the users not having internet to consume RSS virtually over the internet. Feed Controller helps to start and stop the service.

Class Diagram

image003.gif

How to use

The first thing you need to do is create a table in the database.

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE dbo.RSSFeeds(FeedID numeric(18, 0) IDENTITY(1,1) NOT NULL,FeedURL nvarchar(max) NOT NULL,Category nvarchar(max) NOT NULL
) ON PRIMARY

Then create a IIS Virtual Folder where you need to drop the feeds.

last thing to do is modify the config file below:
<appSettings>
<add key="FilesDrop" value="C:\Inetpub\wwwroot\RSSFeeds\" />
<add key="UserName" value="XXXXX" />
<add key="Domain" value="XXXX" />
<add key="Password" value="XXXXXX" />
<add key="ProxyServer" value="XXX.XXX.XXX.XXX" />
<add key="Port" value="80" />
<add key="AppName" value="Name to be given" />
<add key ="ConnectionString" value= "Data Source=XXX;Initial Catalog=XXX;User Id=XX;Password=XXXX"/>
<add key ="TimerElapsedTime" value="60000"/> /// This is in milliseconds (remove this comment)
</appSettings>

Fill in the table with urls for feeds and there you go !!

Once you have created the table [RSSFeeds] in sql server, then you need to configure the application.config file. Here you will find
<add key="ConnectionString" value="Data Source=XXXX;Initial Catalog=XXX;User Id=XXXX;Password=XXXXX" />

in this you put your datasource as database server, initial catalog as database name and username and password

then create virtual folder in ur iis

give the physical path in app config

<add key="FilesDrop" value="C:\Inetpub\wwwroot\RSSFeeds\" />

remember: in table, the column name "Category" is going to be the name of the file generated in ur drop folder i.e. news.xml. its just i named the column wrong you can change it to "filename".

Do look into public void FetchXML() in rssfeeds.cs file in the rssfeedservice project.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Arif Habib Shadan - www.i-arif.com
Architect www.i-arif.com
Pakistan Pakistan
Working as solution architect. Developing solutions based on Microsoft .Net based Technologies.
Have my own blog at
www.i-arif.com

Comments and Discussions

 
GeneralReported Pinmembernorm .net22-Jan-08 0:23 
Generalwow...a new record Pinmemberjconwell3-Jan-08 5:21 
GeneralRe: wow...a new record PinmemberArif Habib Shadan3-Jan-08 13:09 
AnswerRe: wow...a new record PinmemberKiran Somaya7-Jan-08 17:15 
GeneralRe: wow...a new record PinmemberPeterTheGreat14-Jan-08 22:30 
GeneralRe: wow...a new record Pinmembernorm .net22-Jan-08 0:24 
QuestionHow to access the RSS feeds after inserting them in the sql table Pinmembermshehadeh2-Jan-08 20:22 
AnswerRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan2-Jan-08 23:11 
GeneralRe: How to access the RSS feeds after inserting them in the sql table Pinmemberolugbe28-May-08 0:53 
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan28-May-08 1:43 
GeneralRe: How to access the RSS feeds after inserting them in the sql table Pinmemberolugbe28-May-08 2:20 
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan28-May-08 22:09 
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberKent397319-Sep-08 8:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 11 Mar 2008
Article Copyright 2008 by Arif Habib Shadan - www.i-arif.com
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid