Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 8213 invoked from network); 8 Aug 2007 10:36:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 10:36:07 -0000 Received: (qmail 44419 invoked by uid 500); 8 Aug 2007 10:36:06 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 44398 invoked by uid 500); 8 Aug 2007 10:36:06 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 44389 invoked by uid 99); 8 Aug 2007 10:36:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 03:36:06 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Aug 2007 10:35:55 +0000 Received: (qmail 86967 invoked from network); 8 Aug 2007 10:35:33 -0000 Received: from 124.43.226.102 (HELO ?10.100.1.216?) (124.43.226.102) by relay03.pair.com with SMTP; 8 Aug 2007 10:35:33 -0000 X-pair-Authenticated: 124.43.226.102 Message-ID: <46B99C73.2080306@wso2.com> Date: Wed, 08 Aug 2007 16:05:31 +0530 From: Tyrell Perera Reply-To: tyrell@wso2.com Organization: WSO2 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: abdera-user@incubator.apache.org Subject: Re: Sample code for an Atom Feed reader References: <46B8FB7B.90806@wso2.com> <46B95F47.6020704@wso2.com> <46B979FD.5070409@wso2.com> In-Reply-To: <46B979FD.5070409@wso2.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Figured out the issue. The Atom feed I used for testing wasn't well formed. Tyrell Tyrell Perera wrote: > I think I wasn't very clear earlier :) > > The thing is I already have a working APP implementation capable of > authentication and post/put/delete entries from a given collection. > > I want to implement a 'get' for a Feed. The method will accept an atom > feed url and generate a Feed model locally. > > My code looks somewhat like the following. I tested with an online feed > as well as a locally stored feed xml. I keep gettin a > org.apache.abdera.parser.stax.FOMExtensibleElement exception. > > > > org.apache.abdera.parser.Parser parser = hostObject.abdera.getParser(); > URL url = new URL((String) arguments[0]); > Feed feed = null; > try { > feed = (Feed) parser.parse(url.openStream()).getRoot(); > } catch (IRISyntaxException e) { > e.printStackTrace(); > } > > > > Am I doing something wrong here ? > > thanks, > > Tyrell > > Yogesh Mujumdar wrote: >> You say that you are able to manipulate the feeds, but not able to >> build a >> feed from a published source over the internet. Do you mean you are >> not able >> to retrieve the feed from the internet? In which case, you gotta check >> the >> code which does it. >> >> On 8/8/07, Tyrell Perera wrote: >>> Thanks for the quick reply. I already have a working APP implementation >>> where authentication and get/post/delete entry are working. >>> >>> I just want to do a basic retrieval of an online feed. Just a simple get >>> and build a Feed model from it. This is failing for some reason. Maybe >>> I'm doing something wrong? >>> >>> Tyrell >>> >>> Yogesh Mujumdar wrote: >>>> AFAIK, Abdera has an example showing how to retrieve and manipulate a >>>> feed/entries and post it back. You can take a look at it and make a >>> start >>>> from there. >>>> >>>> You can as well take any open source feed reader ( RSSowl ) and get >>>> some >>>> features as well as implementation ideas. >>>> >>>> Good luck to you! >>>> >>>> On 8/8/07, Tyrell Perera wrote: >>>>> Hi, >>>>> >>>>> I am in the process of implementing an Atom feed reader. The >>> requirement >>>>> is to read a published, online feed fully and persist it locally for >>>>> offline manipulation. >>>>> >>>>> I found some useful tutorials at developerworks, which helped in my >>>>> APP >>>>> stuff tremendously. But I'm a bit stuck with this seemingly simple >>>>> part >>> :) >>>>> I would appreciate if you can provide some pointers, where I can get >>>>> more information and/or a tutorial. >>>>> >>>>> thanks, >>>>> >>>>> Tyrell >>>>> >>>> >>>> >>> -- >>> Tyrell Perera >>> Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/ >>> email: tyrell@wso2.com; cell: +94 77 302 2505 >>> >>> "Oxygenating the Web Service Platform." >>> >> >> >> > -- Tyrell Perera Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/ email: tyrell@wso2.com; cell: +94 77 302 2505 "Oxygenating the Web Service Platform."