如何使RSS供稿作为Web服务 [英] how to make rss feed as webservice
本文介绍了如何使RSS供稿作为Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在PC上以xml格式下载了一个rssfeed.xml是.
I downloaded one rss feed as xml in my pc.the xml is.
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Generated on Sat, 17 Dec 2011 16:40:23 +0530
-->
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
<atom:link href="http://www.business-standard.com/rss/rss_icon.png" rel="self" type="application/rss+xml" />
- <title>
- <![CDATA[ Markets & Investing ->News Now
</title>
<link>http://www.business-standard.com/</link>
<description>The latest news from India's most respected business daily.</description>
<language>en-us</language>
<managingEditor>webtech@bsmail.in (Webmaster)</managingEditor>
<webMaster>webtech@bsmail.in (Webmaster)</webMaster>
<generator>PHP RSS Feed Generator</generator>
- <image>
<url>http://www.business-standard.com/india/images/logo_08.jpg</url>
<title>Business-Standard</title>
<link />
<width>248</width>
<height>146</height>
</image>
- <item>
- <title>
- <![CDATA[ Gold snaps 5-day losing streak, gains Rs 75
</title>
- <description>
- <![CDATA[ Snapping five-day losing streak, gold prices recovered Rs 75 to Rs 27,840 per 10 gram in the national capital today on buying at lower levels amid firm trend overseas.
</description>
<link>http://www.business-standard.com/india/news/gold-snaps-5-day-losing-streak-gains-rs-75/153154/on</link>
<pubDate>Sat, 17 Dec 2011 15:38:06 +0530</pubDate>
<guid isPermaLink="true">http://www.business-standard.com/india/news/gold-snaps-5-day-losing-streak-gains-rs-75/153154/on</guid>
</item>
- <item>
- <title>
- <![CDATA[ Weekly Report Sensex, Nifty hit 2-yr lows on growth woes
</title>
- <description>
- <![CDATA[ In the week to December 16, benchmark share indices ended at their two-year lows weighed by dismal October IIP data, weakening rupee, high headline inflation and growth concerns.
</description>
<link>http://www.business-standard.com/india/news/weekly-report-sensex-nifty-hit-2-yr-lowsgrowth-woes/153144/on</link>
<pubDate>Sat, 17 Dec 2011 09:50:14 +0530</pubDate>
<guid isPermaLink="true">http://www.business-standard.com/india/news/weekly-report-sensex-nifty-hit-2-yr-lowsgrowth-woes/153144/on</guid>
</item>
- <item>
- <title>
- <![CDATA[ Growth sectors lead Wall Street higher
</title>
- <description>
- <![CDATA[ US stocks rose on Friday with growth-related shares leading the way as investors focused on a brighter US economic outlook.
</description>
<link>http://www.business-standard.com/india/news/growth-sectors-lead-wall-street-higher/153139/on</link>
<pubDate>Fri, 16 Dec 2011 21:24:36 +0530</pubDate>
<guid isPermaLink="true">http://www.business-standard.com/india/news/growth-sectors-lead-wall-street-higher/153139/on</guid>
</item>
我希望这个XML成为我的WCF服务,先生告诉我将其作为WCF服务,使其仅获得标题和描述.
我从早上开始尝试并发布了几次,如何将以上内容作为wcf服务实现.
I want this XML to be my WCF service, my sir told me to make this as WCF service getting only title and description.
I am trying from morning and posted several times, how to implement the above as wcf service.
推荐答案
正确地遵循文章:
使用C#创建Rss Feed(Web服务) Asp.net访问数据库
HTTP处理程序和HTTP模块概述
使用自定义订阅源阅读器在ASP.NET中创建消费RSS订阅
您也可以尝试一个非常好的工具包 ASP.Net RSS工具包使ASP.Net应用程序可以使用和发布到RSS feed.
Follow the articles properly:
Create Rss Feed (Web service) using C# Asp.net Access database
HTTP Handlers and HTTP Modules Overview
Create Consuming Rss Feeds In ASP.NET With Custom Feed Reader
You can also try a very nice toolkit ASP.Net RSS Toolkit gives ASP.Net applications the ability to consume and publish to RSS feeds.
这篇关于如何使RSS供稿作为Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文