Problems with SDN RSS Feed - part 1

Hi all, this is the first question I have regarding the SDN RSS Feed and it's processing. I have followed Brian's weblog  'RSS = HttpClient + XML + XSLT' (link: /people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt). When testing this example I run into a problem when executing the following commands:
node = element->find_from_name( name = 'creator' ).
<blog>-creator = node->get_value( ).
node = element->find_from_name( name = 'date' ).
<blog>-date = node->get_value( ).
Both values seem to be empty resulting in a HTTP_COMMUNICATION_FAILURE. When I comment these lines out the example runs correctly. Checking the actual RSS Feed, http://weblogs.sdn.sap.com/pub/q/weblog_rss_topic?x-topic=24&x-ver=1.0, there are entries for dc:creator and dc:date, so I changed my code accordingly but no success. Any idea what is causing this issue? Thanks, Tiest

Brian, as discussed attached a test programm that shows the first error I am unable to understand.... Hope this makes it easier for you all to help me understand what is causing this issue. Thanks in advance, Tiest.
REPORT  ZBSP_FAQ_RSSTST                                            
  DATA: url         TYPE STRING,
        http_client TYPE REF TO IF_HTTP_CLIENT,
        return_code TYPE I,
        content     TYPE STRING.
  url = 'http://weblogs.sdn.sap.com/pub/q/weblog_rss_topic?x-topic=24&x-ver=1.0'.
url = 'http://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0'.
  cl_http_client=>create_by_url( EXPORTING url    = url
                                 IMPORTING client = http_client ).
  http_client->send( ).
  http_client->receive( ).
  http_client->response->get_status( IMPORTING code = return_code ).
  content = http_client->response->get_cdata( ).
  http_client->close( ).
Parse response into XML Document
  TYPE-POOLS: ixml.
  DATA: ixml          TYPE REF TO if_ixml,
        streamFactory TYPE REF TO if_ixml_stream_factory,
        istream       TYPE REF TO if_ixml_istream,
        parser        TYPE REF TO if_ixml_parser,
        document      TYPE REF TO if_ixml_document.
  IF content CS '<!DOCTYPE' AND content CS ']>'.
    DATA dummy type string.
    SPLIT content AT '<!DOCTYPE' INTO dummy content.
    SPLIT content AT ']>'        INTO dummy content.
  ENDIF.
  ixml     = cl_ixml=>create( ).
  streamFactory = ixml->create_stream_factory( ).
  istream  = streamFactory->create_istream_cstring( content ).
  document = ixml->create_document( ).
  parser   = ixml->create_parser( stream_factory = streamFactory
                                 istream         = iStream
                                 document        = document ).
  parser->set_normalizing( ).
  parser->set_validating( mode = if_ixml_parser=>co_no_validation ).
  parser->parse( ).
Define table for BSP Output
  TYPES: BEGIN OF t_blog,
            title          TYPE string,
            link           TYPE string,
            description    TYPE string,
            creator        TYPE string,
            date           TYPE string,
         END OF t_blog,
         t_blogs TYPE TABLE OF t_blog.
  DATA:          blogs type t_blogs.
  FIELD-SYMBOLS: <blog> type t_blog.
- Find all the <item> tags                                           -
  DATA:  collection      TYPE REF TO if_ixml_node_collection,
         node            TYPE REF TO if_ixml_node,
         element         TYPE REF TO if_ixml_element,
         index           TYPE i.
  collection = document->get_elements_by_tag_name( name = 'item' ).
  WHILE index < collection->get_length( ).
    APPEND INITIAL LINE TO blogs ASSIGNING <blog>.
    node     = collection->get_item( index ).
    element ?= node->query_interface( ixml_iid_element ).
    index    = index + 1.
    node = element->find_from_name( name = 'title' ).
    <blog>-title = node->get_value( ).
    node = element->find_from_name( name = 'link' ).
    <blog>-link = node->get_value( ).
    node = element->find_from_name( name = 'description' ).
    <blog>-description = node->get_value( ).
<b>- Activating these two lines results in a shortdump, no idea what is causing this problem -</b>
    node = element->find_from_name( name = 'creator' ).
    <blog>-creator = node->get_value( ).
    node = element->find_from_name( name = 'date' ).
    <blog>-date = node->get_value( ).
  ENDWHILE.
  LOOP AT blogs ASSIGNING <blog>.
    write: / 'title:',       14 <blog>-title.
    write: / 'link:',        14 <blog>-link.
    write: / 'description:', 14 <blog>-description.
    write: / 'creator:',     14 <blog>-creator.
    write: / 'date:',        14 <blog>-date.
    write: /.
  ENDLOOP.
Message was edited by: Tiest van Gool

Similar Messages

  • Problem with loading rss feed in flash

    I wrote the following simple code to get started with loading
    rss feed:
    var document = new XML();
    document.onload = myLoadHandler;
    document.load("
    http://www.nytimes.com/services/xml/rss/nyt/Business.xml");
    trace(document.status);
    trace(document.loaded);
    trace(success.toString());
    But the result I got is always this:
    0
    false
    undefined
    It is the same even for local xml files saved in the same
    directory as the flash file.
    Could someone please help me?
    Thanks so much~

    It's necessary to discard the white spaces.
    Set the ignoreWhite property to true.
    document.ignoreWhite = true;
    Regards,
    Erick Souza | ericksouza.com

  • Problems with the RSS feed for my podcast

    Hi, am very new to this so apologies if this requires a simple solution.
    I was told that to find the RSS for my podcast, I hover my cursor over the subscribe button and this will be it. When I do this I get:
    itpc://www.jilt.org.uk/publichtml/publichtml/Podcast/rss.xml
    I have tried this with itunes and it has been rejected as not working.
    Other information that might be useful for anyone trying to help is that my url is www.jilt.org.uk.
    I have entered "jilt" as the sitename on Iweb but this doesn't seem to come up anywhere.
    Am very confused by it all and would hugely appreciate any advice.

    You seem to be uploading to a server that uses a public_html folder as the root folder.
    Inside this you have a copy of the public_html folder and, inside this is a copy of your website.
    You also appear to have your files uploaded to the public_html folder because your podcast is available here....
    http://www.jilt.org.uk/Podcast/Podcast.html
    So that you don't break the RSS feed what you need to do is this:
    Publish the site to a local folder and you should get an index.html file and a folder named "jilt".
    Upload these to the top level public_html folder. Now open the site in the browser and hover over the "Subscribe" button to get the feed's URL.

  • Podcasting with iWeb- RSS FEED TITLE?!?!!?!?

    Alright, I put my podcast together using Audacity for the most part but used the new Garage Band to fix it up and add an introduction. Then I exported it in to iWeb from Garage Band to publish it to the web. You can see it for yourself at podcast.notsam.com. Now, for some reason when one hits subscribe to podcast from the site it appears with the RSS feed URL as the title. For this same reason iTunes won't accept it as the "Feed doesn't have a title." Am I missing something here. Obviously I created a title for it, and it does have one before I upload. Any help? Thanks

    iWeb appears to name the RSS feed from the title text that appears on the picture frame at the top of your initial weblog page. This defaults to "My Blog" - hence your RSS feed gets this name.
    I've managed to fix it in mine - http://web.mac.com/karen.hughes/iWeb/Curlypaws/Curlypaws%20Blog/Curlypaws%20Blog .html - note how the title on the picture (not the page title) is "Curlypaws Blog" and if you subscribe to the RSS feed, that is what it will be called. Not very intuitive - it puzzled me until I read the earlier post in here from jayeaster and then played around with my own site.
    Dual 2Ghz G5, MacBook Pro (on order...)   Mac OS X (10.4.4)  

  • Problem with Collaboration FAQ room part

    I'm having a strange problem with the FAQ room part (SP16).
    The first time I go to the room, the FAQ works fine. If I navigate somewhere else and come back the FAQ iView is blank.
    I have quit the browser and come back, it's still blank.
    I have switched browsers (from IE to Firefox) and it works, but only once like IE. After that it's blank again.
    I've loggen out, cleared the cache and forced a reload all with the same results (still blank).
    However, if I close all my browsers and wait an hour or so before I try again, it works. I'm not sure if it takes an hour exactly. I usually go to lunch and it works when I come back.
    Any Ideas?

    Hi Chirstopher
      I am also facing the same problem, if you have fixed the issue, could you please share the solution with me.I need to fix the issue immediatly. I appreciate if you can give me an approach to fix this.
    Thanks
    Sandeesh

  • Video podcast with multiple RSS feeds

    We have a new video podcast at LetsKnit2gether.com and we have three RSS feeds for our show, each with a different video file format. We’re using WordPress with PodPress to create the RSS and then we manually cut and paste the others. We have two problems:
    One – We can’t seem to get the multiple feeds to show up correctly in iTunes (the desktop software, not the music store – we haven’t submitted to the iTunes store yet.) I can paste one RSS URL in the Advanced/Subscribe to Podcast window and subscribe to the feed but I can’t subscribe to any of the other two. When I try they appear for a second and then disappear. Tried in both iTunes 6 and 7 on PC and Mac. I’m guessing there is something in the iTunes software that prevents similar feeds. I read as much on the Apple iTunes tutorial page but our feeds are following the rules as far as I can tell. (www.feedvalidator.org says all is well too.) Once you subscribe to one you can’t change your mind and subscribe to one of the others ever again, ever! ...even if you delete the one you subscribed to first.
    There are several video podcasts that I’ve subscribed to via iTunes software that have multiple feeds (GeekBrief, Rocketboom, 88slide, etc.) so I know this can be done, I just have to figure out what’s causing iTunes to choke.
    Anybody have any clue what’s going on?
    Two – We’re doing cut and paste on the WordPress generated feed to make the multiple xml files. This is going to become a bigger and bigger task as time goes on and we generate more shows. I’d like to just push a button and generate all three feeds from the blog. Is there a plug-in for Wordpress or stand alone software that will do this? I don’t mind paying for software if it saves us time.
    Thanks!
    Eric
    Let's Knit2gether
    a video podcast about knitting
    http://www.LetsKnit2gether.com
    Asus P4C800   Windows XP Pro  

    what software did you use to burn your rss feed? if you used feed burner they will automaticly redirect the suscribers to the new feed. i hope this helped you
    check us out at
    www.thehistorypodcast.blogspot.com

  • CAN ANYBODY TELL ME WHAT WRONG WITH THIS RSS FEED IT WONT WORK

    CAN ANYBONE TELL ME WHATS WRONG WITH THIS FEED BECAUSE IT WONT WORK AND ALSO HOW DO I GET A LINK TO THE PODCAST RSS FEED FOR THE SUBMIT PODCAST PAGE ON ITUNES,
    ANY HELP WILL BE MUCH APRECIATED
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <title>DJ Hybrid Coventry Drum n Bass Podcast</title>
    <link>http://www.djhybridcoventry.com/podcast.htm</link>
    <language>en-us</language>
    <copyright>℗ & © 2007 DJ Hybridb& </copyright>
    <itunes:subtitle>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</itunes:subtitle>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:summary>The DJ Hybrid Coventry Drum n Bass Podcast will showcase a selection of the latest and greatest tunes that are getting rinsed on the scene, mixed down with sharp cuts and nasty double drops by Dj Hybrid the podcast will also feature other DJ's and Mc's on different shows. Updated every two weeks this is guarenteed to be an original style of drum n bass mashup, for more info check www.djhybridcoventry.com</itunes:summary>
    <description>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</description>
    <itunes:owner>
    <itunes:name>DJ Hybrid</itunes:name>
    <itunes:email>[email protected]</itunes:email>
    </itunes:owner>
    <itunes:image href="http://i100.photobucket.com/albums/m8/djhybrid/PODCASTLOGOBLUE.jpg" />
    <itunes:category text="Music">
    <itunes:category text="Drum n Bass"/>
    </itunes:category>
    <itunes:category text="music"/>
    <item>
    <title>DJ Hybrid Podcast - 1st Show 03/6/07</title>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:subtitle>The first show of the new drum n bass podcast from DJ Hybrid</itunes:subtitle>
    <itunes:summary>Welcome to the 1st show from DJ Hybrid because its the first show im goin to play what tunes i think represent me as a DJ aswell as my favourite drum n bass tunes at the moment for tracklistings check www.djhybridcoventry.com</itunes:summary>
    <enclosure url="http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd931 3f824d/v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3" length="8727310" type="audio/x-m4a" />
    <guid>http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd9313f824d /v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3</guid>
    <pubDate>Sun, 03 Jun 2007 20:00:00 GMT</pubDate>
    <itunes:duration>53:36</itunes:duration>
    <itunes:keywords>DJ, Hybrid, Podcast, Drum, Bass, Jungle, Coventry, Double Drop, Latest, Tunes, Vinyl, Liquid, Rave, Reggae, Urban</itunes:keywords>
    </item>
    </channel>
    </rss>

    First...Stop screaming. It's rude.
    Next...there are some minor problems with your feed. "Drum n Bass" is not a iTunes category. Stick with <itunes:category text="Music" /> remove the others.
    Not required, but recommend to add an <itunes:explicit> tag with a Y or N depending on what suits your podcast. The iTunes staff will remove your feed if it isn't tagged properly.
    MP3 audio files should have a type="audio/mpeg".
    Keep the Podcast spec handy...the categories and other info listed in the spec.
    Test your feed with http://www.feedvalidator.org it will point out problems with your feed.
    The bigger problems stem from your podcast enclosure, specifically the URL.
    The URL you have listed to the podcast mp3 apparently has changed so iTunes can't download the file. It also appears that you are using a "free download" kind of service that uses web page based downloads, which might account for why the URL keeps changing. Don't think that iTunes will be able to properly download the file.
    Erik

  • A problem with Static/RSS ticker

    Hello everyone!
    I have a test lab set up (DMM 5.1 and DMP-4305G, license is OK).
    I made a few presentations with Cisco Digital Media Designer that included video, text ticker and RSS ticker.
    Video works fine.
    Static text ticker almost works perfect, only i can't change the effect of text (it's alwys fadeing even if i change it to left/fight scroll).
    RSS feeds are visible in Cisco Digital Media Designer and seems to work, but when i play it on DMP, the box with rss feed is blank.
    Please, i need some advice, i tried everything i could think of...
    Best Regards,
    Ales

    Hi Aurelio,
    Thank you for your post!
    This is the rss link i am using:
    http://www.rtvslo.si/slovenija/rss
    As i said link appears to work in  Digital Media Designer.
    When scheduling the presentation to DMP i have no result.
    I tried different links. This for instance link works perfect-> http://newsrss.bbc.co.uk/rss/newsonline_world_edition/europe/rss.xml
    i also copied the source code of bbcRSS and modified it (it is attached to this post) and put it on my web server, checked it with explorer - it works;
    on Digital Media Designer the link is not reachable, please advise.
    What could be the issue? Character coding maybe?
    ( i also noticed by using static ticker that DMP-4305 can't show slovenian special characters => š č ć ž )
    Does DMP-4305 / Digital Media Designer support different character coding?
    Thanks again for you help,
    Cheers!
    Ales

  • Having problem at displaying RSS Feed

    Hi,
    I am having problem in displaying the RSS feeds at the Global homepage applet in Single tenant Pod. Are there any special settings required/ or could there be any restrictions? I tested the same in one of the multi-tenant pods and is working fine at the same network. However facing issue in displaying the same at Single tenant pod.
    Sample feed that I am trying to check: http://feeds.bbci.co.uk/news/rss.xml

    It doesn't show me any error message, it just displays the blank screen. Waited until the complete page loads, however still the same blank screen. When I access the same link in different tab (Not in OnDemand), can see the screen. What could be the problem?

  • Need help with reading RSS feed from SSIS

    Hi all,
    I am trying to read RSS feed from SSIS by using the Script Component. So far I am able to read some information from the RSS feed from the following items included in the code, Title, PublishDate, LastUpdateTime, Id and Summary.
    There are still more item but I am unable to identify the proper data type for the following:
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    When I define the data for item.Content as Unicode String in the column properties for the Output column I get the following error message:
    Error 1 Cannot implicitly convert type 'System.ServiceModel.Syndication.SyndicationContent' to 'string'
    And the same error for the other three variables.
    I am using HTTP Connection manager to read the xml link.
    I tried to google around for some help but I could not find more information about the datatype.
    I appreciate any help if someone can point me to the right solution for reading RSS feed from SSIS.
    Code:
    /* Microsoft SQL Server Integration Services Script Component
    * Write scripts using Microsoft Visual C# 2008.
    * ScriptMain is the entry point class of the script.*/
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.ServiceModel.Syndication;
    using System.Xml;
    using System.Text;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    private string url = string.Empty;
    private SyndicationFeed feed = null;
    private XmlReader reader = null;
    public override void PreExecute()
    base.PreExecute();
    // Get the URL from the Http Connection Manager.
    // Note, we're not actually using the connection manager's connection object,
    // just it's URL setting. This is because using the .NET connection classes
    // give us more flexibility.
    reader = XmlReader.Create(Connections.HttpConnection.ConnectionString);
    feed = SyndicationFeed.Load(reader);
    public override void PostExecute()
    base.PostExecute();
    reader.Close();
    public override void CreateNewOutputRows()
    if (feed != null)
    foreach (var item in feed.Items)
    Output0Buffer.AddRow();
    Output0Buffer.Title = item.Title.Text;
    Output0Buffer.PublishDate = item.PublishDate;
    Output0Buffer.LastUpdatedTime = item.LastUpdatedTime;
    Output0Buffer.Link = item.Id;
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    Output0Buffer.FeedImage.AddBlobData(ConvertToBytes(item.Summary));
    string authorName = string.Empty;
    if (item.Authors.Count > 0)
    // take the first author
    authorName = item.Authors[0].Name;
    Output0Buffer.Author = authorName;
    Output0Buffer.SetEndOfRowset();
    private byte[] ConvertToBytes(TextSyndicationContent content)
    if (content != null && !string.IsNullOrEmpty(content.Text))
    // convert the string buffer to UTF8 so we can store it in an NTEXT column
    var encoding = new UTF8Encoding();
    return encoding.GetBytes(content.Text);
    return new byte[0];
    Thanks in return.

    You need to make it running outside SSIS 1st. I just do not see why you need to publish it here at the moment.
    And to solve it, doesn't C# has the
    VAR datatype so you do not have to guess.
    Arthur
    MyBlog
    Twitter

  • Problem with rssutils (rss utilities)

    Hello All,
    I read everything on the page http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/ and did it as written there.
    some part of the rssutils is worked but I couldnt manage to get items or images.
    I checked log files and I found following errors in the stdout.log file:
    INFO: items does not exist or method signature is incorrect
    java.lang.NoSuchMethodException: com.sun.cnpi.rss.elements.Channel.get�tems()
    INFO: image does not exist or method signature is incorrect
    java.lang.NoSuchMethodException: com.sun.cnpi.rss.elements.Channel.set�mage(com.sun.cnpi.rss.elements.Image)
    Im using turkish localization setting but looks like there is a problem in these class files with some turkish alphabet like "� I i �"
    I think Its possible decompile classes and compile them back but Im not sure if its works or not.
    is there way to handle that problem without changing the regional settings of the computer?
    Thanks.

    Hello Paul,
    Have a look in here...
    help fixed
    That should get you going again.
    Cheers
    Ian

  • Problems with SDN and Mozilla FireFox

    I'm trying to acces SDN portal with Mozilla FireFox 0.9 Browser, but I can't.
    Anybody could helpme? It's only a personal problem or it's a general problem?

    Hi
    I have had the same problem, but I solved it by deleting all cookies from sdn.sap.com and then logged in again.
    Hope it helps you.
    <b>Update:</b>
    Sorry I thought it helped - but it seems that it is necessary to delete the cookies again when the session expires...
    I really think SAP and sdn should put some effort into solving such "simple" problems.
    /Peter
    Message was edited by: Peter Michael

  • How to submit a podcast with an RSS feed to iTunes

    According to this page -- http://www.apple.com/itunes/podcasts/specs.html#submitting -- "In the left column of the Podcasts page, in the Learn More box at the bottom, click on the Submit a Podcast link." I'm not able to find the Learn More box. How do I submit a podcast to iTunes?

    You have to create one with a hosting provider, or create one yourself: see this apple article: http://www.apple.com/itunes/store/podcaststechspecs.html#_Toc526931673
    You can also use an app like Feeder (http:/reinventedsoftware.com/feeder/) for Mac.

  • Regarding problem with new line feed for DME file generation

    Hello Experts,
    I m facing a problem in the DME file generation.
    we want each record in the DME file should be in new line. for that we have add the new line feed character in the each row end. So in the SAP output it looks ok, But if we download that file the carriage return field is coming in the end of every row.
    can any one tell how to solve this issue.
    Please refer the below line code which i m using for new line
    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>CR_LF
    You reply is valuable..
    Thanks,
    Suresh

    DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>newline.

  • Problem with Adjustment Brush enhancing parts of picture it shouldn't

    Working on some pictures I encountered the following problem today. I did my major adjustments to the picture (e.g. Exposure -0,95) and then wanted to add some minor touches with the Adjustment Brush. As soon as I placed one click with the brush tool anywhere in the picture the highlights of the whole picture becamer over exposed.
    This first screenshot shows the picture after the first adjustments:
    Now you can see that I added an Adjustment Brush (Size:11, Feather: 25, Flow: 50, Density: 100) far away from the face and still the highlights in face are blown out. Nothing else has been changed:
    Does anyone have an idea what the problem is and how to avoid ACR doing this? It does not make a difference if the adjustment brush is set to a plus or minus value.
    Thanks in advance
    Oliver
    (Win 7 x64 Ultimate, Photoshop CS5 12.0.4, ACR 6.5.0.216)

    Thank you for the replies, Tai Lao.
    1. The behaviour is occuring no matter if viewed in 100%, 24% or any other magnification.
    2. No, I haven't tried ACR 6.6. Judging from this thread the problem seems to exist for quite a few versions now.
    3. The brush stroke seen on the screenshot was a "new" one. It was the first brush action done to the picture.
    I tried reducing the size of the adjustment brush to 2 and place this tiny brush stroke in the outmost corner of the picture. Still the highlights went up. Opening the picture as a Smart Object before using the brush everything is fine in PS. Reopening the Smart Object in ACR and using the size 2 brush far away from the higlights causes the same unwanted beheaviour.
    At first I thought it had something to do with having done some adjustment to the exposure before but testing showed that this phenomena happens even when nothing was done the picture prior to using the adjustment brush.

Maybe you are looking for