Click here to Skip to main content
Licence CPOL
First Posted 2 Jan 2008
Views 22,735
Bookmarked 11 times

RSS Feed Server

Creating a RSS Feed Server using .Net
11 votes, 57.9%
1
1 vote, 5.3%
2
2 votes, 10.5%
3

4
5 votes, 26.3%
5
1.42/5 - 19 votes
5 removed
μ 1.85, σa 3.09 [?]

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

Member
Working as solution architect. Developing solutions based on Microsoft .Net based Technologies.
Have my own blog at
www.i-arif.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralReported Pinmembernorm .net1:23 22 Jan '08  
Generalwow...a new record Pinmemberjconwell6:21 3 Jan '08  
GeneralRe: wow...a new record PinmemberArif Habib Shadan14:09 3 Jan '08  
AnswerRe: wow...a new record PinmemberKiran Somaya18:15 7 Jan '08  
GeneralRe: wow...a new record PinmemberPeterTheGreat23:30 14 Jan '08  
GeneralRe: wow...a new record Pinmembernorm .net1:24 22 Jan '08  
QuestionHow to access the RSS feeds after inserting them in the sql table Pinmembermshehadeh21:22 2 Jan '08  
AnswerRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan0:11 3 Jan '08  
GeneralRe: How to access the RSS feeds after inserting them in the sql table Pinmemberolugbe1:53 28 May '08  
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan2:43 28 May '08  
GeneralRe: How to access the RSS feeds after inserting them in the sql table Pinmemberolugbe3:20 28 May '08  
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberArif Habib Shadan23:09 28 May '08  
GeneralRe: How to access the RSS feeds after inserting them in the sql table PinmemberKent39739:32 19 Sep '08  

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.

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