How to display a simple rss feed?

Hi,
I've build a simple application that has a httpservice called rss that calls "http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml" and retrieves the rss feed. Under test operation I can see it returning the feed.
When the init() function is called the httpservice is called and passed to a datagrid.
However, when I run it I get the following fault.
Security error accessing url
Destination: DefaultHTTP
In the console I get the following messeage:
Warning: Domain www.nytimes.com does not specify a meta-policy.  Applying default meta-policy 'master-only'.  This configuration is deprecated.  See http://www.adobe.com/go/strict_policy_files to fix this problem.
Error: Request for resource at http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml by requestor from http://localhost:8888/Newsroom-debug/Newsroom.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
*** Security Sandbox Violation ***
Connection to http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml halted - not permitted from http://localhost:8888/Newsroom-debug/Newsroom.swf
[Unload SWF] /Newsroom-debug/Newsroom.swf
I have checked different posts online and in this forum describing crossdomain.xml and settings in the flash player global settings to resolve this issue, but I can for some reason not get it to work.
I want to be able to take rss feeds from any site and display them in a simple datagrid?
Any suggestions?
Below is the application code.
Br,
Karsten!
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          creationComplete="init();" xmlns:rss="services.rss.*">
<fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.events.FlexEvent;
            import mx.rpc.events.ResultEvent;
          protected function init():void
                getDataResult.token = rss.getData();
        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:CallResponder id="getDataResult"/>
        <rss:Rss id="rss" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    </fx:Declarations>
    <mx:DataGrid id="rssGrid" width="500" dataProvider="{getDataResult.lastResult.channel.item}" >
        <mx:columns>
            <mx:DataGridColumn headerText="Feed" dataField="headline" />
            <mx:DataGridColumn headerText="description" dataField="description"/>
        </mx:columns>
        </mx:DataGrid>
</s:Application>

OK.
Tried out your suggestion and it works!
Thanks saisri2k2
1) I created an http service which calls a php file:
<mx:HTTPService
            id="rssNewYorkTimes"
            url="php/newyorktimes.php"
            result="rssNewYorkTimes_resultHandler(event)"
            resultFormat="e4x" />
2) The php file then gets the feed and passes it back to the rssNewYorkTimes_resultHandler:
<?php
  $feed = 'http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml';
  $rawfeed = @file_get_contents($feed);
  print $rawfeed; 
?>
3) the resulthandler then processes the feed and puts it in an arraycollection that can be passed to the datagrid:
protected function rssNewYorkTimes_resultHandler(event:ResultEvent):void
                var xmlList:XMLList = event.result.channel.item as XMLList;
                for each(var item:XML in xmlList)
                    rssCollection.addItem({title: item.title, description:item.description, source:item.link});
                buildRss();
Thanks also to Chris Black for his post which explains in detail how this trick is done!
http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/

Similar Messages

  • I just wanted to know how to stop loading of rss feeds automatically ? In prior to FF 11 the rss feeds would display if there was no internet connection

    I just wanted to know how to stop loading of rss feeds automatically ? In prior to FF 11 the rss feeds would display if there was no internet connection but now in newer version it would say live bookmark failed to load and doesn't display any feeds, in previous version it would atleast display feeds but in newer version it won't display anything:(

    hello Nitin1234, the handling of live bookmarks was changed quite fundamentally starting in firefox 13 & upwards in order to improve the overall performance of the browser - now rss feeds won't get updated in the background anymore but will only be fetched when you're actively accessing them. this is probably leading to the unwanted side-effect that you're experiencing, unfortunately i don't know any way around that.
    nevertheless please [[Update Firefox to the latest version|update firefox to the latest version]] (16.0.1 at the moment) to stay secure on the web, since there have been many [https://www.mozilla.org/security/known-vulnerabilities/firefox.html highly critical vulnerabilities fixed] since firefox 11/13!

  • Tutorial Announcement .:: How to Create a Dynamic RSS Feeds  ::.

    .:: How to Create a Dynamic RSS Feeds ::.
    Using Adobe Dreamweaver 8 and InterAKT Rss Reader Writer Extension.
    Hello everyone...
    RSS feeds are very useful within sites, as they allow integrating for you website content in an automatic manner. Just share the source for the RSS feed, and when the original content changes, it will reflect in the content you share with any one who subscribed in this feeds on your site.
    In this tutorial i`ll help you integrate a RSS feed into one of your pages. This will display the content of your website to feeds subscribers with up to date content.
    The main purpose of this tutorial is to create a page that allows visitors subscribe to the RSS Feed that they want to see from your website content, or even enter their own in a text box by searching through feeds. also you can define feeds categories if your website is online store, merchant etc...
    :: Online Demo ::
    :: Go to tutorials ::
    Best Regards
    Waleed Barakat
    Developer-Online Creator and programmer
    http://www.developer-online.com

    Hey Waleed,
    thanks again for this great stuff -- and thanks for removing the login protection :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How can I get my RSS feeds to show up on my iOS devices from iCloud?

    How can I get my RSS feeds to show up on my iOS devices from iCloud?  The RSS feeds now show up just fine on my iMac. 
    On my iMac the appear in a category at the same level as In Box, Sent, etc.  However the term RSS is in lighter grey like Mailboxes, On My Mac, Reminders.  I use Snow Leopard 10.7.5.  Any help will be appreciated as I'd like to read the feeds on my iPad 2 and iPhone 5 when I'm away from home.
    Thank you.

    This is helpful, but how do you get both devices to communicate to this single calendar via the iCloud?...
    You did not mention that it must be through iCloud.  But then, it can't really do so if you want to maintain separate Apple IDs.
    So you just set up an additional calendar on your devices.
    iPads, iPhone, Macs can show multiple calendars simultaneously.  I have my work calendar and several personal calendars all showing simultaneously on my iPad, Mac Mini and Macbook Pro.   In the case of my client, they didn't need multiple calendars.  They just were going to use the one shared calendar.  But I did setup the shared Google calendar and separate personal caldendars on their iPhones.  (e.g.: Husband's iPhone = husband's personal Mac Cal + shared Google Calendar.  Wife's iPhone = wife's personal Outlook for Windows Cal + shared Google Calendar.)

  • How do I get the RSS feeds to work in iWeb'08 when published to FTP server?

    There are so many unresolved questions because I have published to an FTP server (Netfirms). HOWEVER, my next task at hand is to resolve the issue of a non-working RSS feed and download capabilities.
    The published website is www.vibrationalvoyages.com.
    When using Cyberduck to upload to Netfirms, I have to call the file name vibrationalvoyages.com because Netfirms organizes my files under a main folder called www (I also purchased the .org and .net extensions along with the singular spelling of the title, have forwarded those url's to the .com extension, which means I have different website names under Netfirm's main folder www, all pointing to www.vibrationalvoyages.com).
    I have to drop the www. in front of vibrationalvoyages.com when publishing to a folder on my computer so, when Cyberduck uploads the files into the main www folder, they are read correctly and published as www.vibrationalvoyages.com. In Cyberduck, the ftp address to upload is vibrationalvoyage.netfirms.com
    Before uploading, I use iTweak to insert the Statcounter tracking codes. Then, I use Rage to optimize the site to cut down on the weight (lots of photos). Then, finally, I get to upload which takes about an hour and a half.
    SO, HOW DO I GET THE RSS FEEDS TO WORK AS WELL AS THE OPTION TO DOWNLOAD AN MP3 RECORDED MEDITATIONS? I eventually also want to include the download option of podcasts.
    Please help! I am doing the best I can to stay in love with Mac but he is turning out to be a pot load of work and the love affair is wearing a little thin.
    I haven't even asked about why iWeb still calls some pages 'The family picnic" or why it switches the url addresses to the individual pages. Probably because in the early stages, I copied an entry rather than just do a new one... but I'll worry about that later. I want to get this 'fixed' first and then I'll address the issue, following Roddy's advice to another writer about installing a flash player, for easy download of the MP3 meditations and for when I record the lessons as podcasts. Until I get this RSS issue resolved, however, podcast downloads are out of the question!

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • How can I create an RSS feed from my Azure Storage Blob?

    I'm a Tech Evangelist at Microsoft, based out of Philadelphia. I also have a podcast,
    http://indiedevpodcast.wordpress.com/, and was previously hosting my show on PodOmatic.
    I made the switch to Azure blog storage today, and I'm able to get the content there:
    https://indiedevpodcast.blob.core.windows.net/podcasts/Ep%2016%20Wimbus%20Studios.mp3/
    The issue though, is how do I generate an RSS feed from my podcasts in Azure blog storage?  It says "file not found", but it opens up Window Media Player and plays the file for me.
    *shrug*
    Is this what I'm looking for? http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
    Thanks! 
    MS Tech Evangelist - Philadelphia | Baltimore Previously: Xbox Engineer at Comcast www.DavidVoyles.wordpress.com

    Hi,
    Thank you for reaching out to us.
    I am currently researching to gather more information with regards to your request.
    I shall revert back to you with an update at the earliest.
    Sincerely appreciate your patience.
    Regards,
    Shirisha Paderu

  • How do i read an rss feed in safari?

    How do I read an RSS feed in the Safari 7.0 web browser?

    Safari doesn't have an RSS feature anymore ...
    This worked in M. Lion so it may work in Mavericks >  Five Ways To Replace Safari’s RSS Reader In Mountain Lion | Cult of Mac

  • Can you please let me know how to subscribe to the RSS feeds.

    Hello Friends – Can you please let me know how to subscribe to the RSS feeds.
    Are there any read applications that are specifically designed to collect RSS feeds. Pls let me know the best ones.
    Thanks

    Hi,
    Yo can copy the RSS link into Firefox address bar and it will open the feed and ask you which program you want to use to read the feed. There are many RSS readers out there. I use Outlook and the free Protopage (www.protopage.com).
    Regards,
    Mahmoud

  • How to display the entire RSS article in Mail?

    OK, this is what I really thought RSS in Mail was going to be... Since I only have access to email at work and no web browser, I had hoped to forward all those RSS feeds to my work inbox so I could then read the paper or whatever, while still looking like I'm at my desk doing work! Ha!
    So, how can you get Mail RSS to display the entire article right in Mail so I can use the forward feature and forward all those articles that I want to my work email address?
    Any ideas would be greatly appreciated!
    This way I don't have to click on my web browser, "Email article", as they would already be in my mailbox ready to be forwarded!
    Thanks.

    RSS (http://www.rssboard.org/rss-specification) is an open format that allows users to aggregate content from different web-sites into a single "channel". The standard has very few "required fields" that boil down to:
    title
    brief description
    link
    The rest is optional, i.e. up to the publishing website to decide whether to make available or not. It is also important to know, that many RSS feeds refer to content that is protected by copyright and hence must be reproduced under the terms decided by the publisher.
    Full text is not an optional field of RSS. Some websites may decide to use "brief description" to feed an entire piece of content, but that is not a standard behavior.
    In other words: what You're looking for can not be achieved through RSS feeds. Getting back to Your original problem - no web access at work – I'm wondering: how come You get RSS feeds and can not read the web pages? RSS feeds are using the same protocol (HTTP) as web pages and unless there's a very sneaky firewall involved, Web browsing should not be a problem.

  • How can i add an rss feed to mac mail?

    I am trying to unclog my email and cancel many of the news related emails I get each day.   I would like to figure out the best way to still get news sent to me (without having to always remember to check 6-7 websites).  I used to use RSS feeds into my email program (was using outlook).  I cannot figure out how to add an rss feed to show up in mac mail as an email folder on the left hand side of the screen under the mailboxes. 
    Thanks.

    That functionality is not to be found in Apple Mail for Safari. Your best bet is the brilliant free RSS reader Vienna. Works very well, highly recommended.

  • How Can I delete an RSS Feed in iTunes/podcasts?

    I have an old rss feed that I want deleted in itunes. I have created a new rss feed and it's up and working great. I want the old one deleted.
    I have used "Report a Concern" and asked itunes to delete the old feed, but nothing has happened. so I went to the files and renamed them all and re-pinged the page so itunes would realize that the feed no longer works, but that hasn't work either. I've searched the forum but can't seem to find out how to have itunes delete the old podcast feed.
    Any ideas?
    I realize that I should have done this a different way, but I didn't know that then... I do now.

    Just to confirm that you originally had a podcast accepted in the iTunes Store, and now you have had a second version accepted with a different Store URL? The procedure you have followed is the correct one, though I don't know how long it's likely to take the Store staff to get round to removing it. Just remove the original feed from the server: it will still show in the Store, which has cached it, but obviously subscribing won't work, and the absence of the feed may encourage the Store staff to remove the Store page.

  • How can I use an RSS feed in my course?

    The University System of Georgia goes to considerable effort to provide its 36 institutions with a content management system that auto-generates RSS feeds, including iTunes U-specific tags.  We use it to feed content to our iTunes U public sites as well as in many other venues such as our statewide LMS.  These RSS feeds also work nicely with the authenticated side of iTunes U  which some faculty still use to support their classes.
    So why is it that I cannot use an RSS feed in my all new iTunes U course? 

    Just to confirm that you originally had a podcast accepted in the iTunes Store, and now you have had a second version accepted with a different Store URL? The procedure you have followed is the correct one, though I don't know how long it's likely to take the Store staff to get round to removing it. Just remove the original feed from the server: it will still show in the Store, which has cached it, but obviously subscribing won't work, and the absence of the feed may encourage the Store staff to remove the Store page.

  • How do i set up rss feeds through apple email?

    How do I set up an RSS feed in the apple email?

    Mail no longer has this feature. You have to use third party RSS clients now.
    charlie

  • How do I subscribe to RSS feeds and manage RSS feeds?

    I can't figure out how to subscribe to RSS feeds and manage RSS feeds?

    Hi TedEvansJr,
    Subscribing to a feed is pretty easy in Firefox. Just take a look at [http://kb.mozillazine.org/RSS:_Live_Bookmarks_overview_%28Firefox%29 this article] and you should be ready to go.
    Hopefully this helps!

  • How to convert Announcements to RSS Feed

    Hello,
    I want to know how to convert the announcement in webcenter portal to RSS Feed . where they are stored and how to retrieve them later.
    Thanks,
    Naga

    HI,
    got the answer, there is a RSS icon in the Announcement console, that creates an RSS FEED for the announcement and can be later RSS Viewer task flow can read these feeds from these services .

Maybe you are looking for

  • Merge o/s partition with data partition on macbook pro, osx 10.6.8

    hi there i have a macbook pro running snow leopard, 10.6.8. the internal hard drive is divided into three partitions, #1 is osx, #2 is also osx, and was meant to be another osx to boot into, #3 is a data drive. i never use the 2nd partition to boot i

  • Variables Display With Info Field Web Item

    Dear Friends, We are facing one issue in BI 7 WAD.Can any one please suggest how to achieve this.. Issue1) In my query, we are having 10 variables and user has enterd 2 variables for his selection.After executing the web i need to display those 2 var

  • USB wireless internet card

    i was told i could connect my USB wireless internet card to my time capsule, i created the network and need help figuring out how to get internet with the USB card.

  • Is it possible to use an iPhone that is bought in USA in Europa?

    USA iPhone in Europa??

  • Thinking of upgrading to an iMac

    Hi - I currently have a 10 year old eMac Power PC G4 running OS X 10.3.9, which I'm very fond of and has never let me down, but I am thinking of upgrading to a new iMac running OS X Snow Leopard. My worry is that I have a lot of software on my exixti