[ http://wso2.org/jira/browse/MASHUP-640?page=comments#action_15424 ] Tyrell Perera commented on MASHUP-640: --------------------------------------
I managed to answer his original question, which is doing a GET using WSRequest. I'm afraid when a Feed is read using our generic Feed host object, the 'guid' might get lost. This is due to the way ROME is implemented. His approach of doing a simple GET using WSRequest and getting the response as XML/E4X helps to get the original RSS feed as it is. The sample I wrote to demonstrate this is at http://mooshup.com/mashup.jsp?path=/mashups/mooshupadmin/simpleGetWithWSRequest > Way to get the raw XML from a feed entry (entry.XML is pre-digested) > -------------------------------------------------------------------- > > Key: MASHUP-640 > URL: http://wso2.org/jira/browse/MASHUP-640 > Project: WSO2 Mashup Server > Issue Type: Improvement > Reporter: Jonathan Marsh > Assigned To: Tyrell Perera > Fix For: 1.1 > > > from http://wso2.org/forum/thread/3135#comment-5031: > Thanks for the response Channa. In fact the pages I am trying to consume are > blog feeds (even though the http://wso2.com/ URL I put in my code snippet > obvisouly wasn't one). So I followed your recommendation but rather than a > Scraper object I went with a Feed object, which I populated from a URL via a > FeedReader object. The problem is that the Entry object that I get from the > Feed object doesn't give me access to the "gui" RSS 2.0 element (more or less > equiv to the "id" element of Atom) of a feed item. So I still need to work at > the XML level to get that. But when I do "entry.XML" on an Entry instance > that I got from a Feed object, the E4X object I get back is not a > representation of the actual XML that was retrieved from the server. It seems > to be an XML representation of the format-neutral (i.e. bridging between RSS, > Atom...) Feed object. As far as I can tell, I can't use that E4X object to > get my RSS 2.0 "guid" element. Can I get the original XML from a Feed object? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://wso2.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Mashup-dev mailing list [email protected] http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev
