Results 1 to 7 of 7
  1. #1
    richiebabes is offline Member
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    0

    Default Web service and RSS feed (maybe?)

    I think this is an advanced topic, although I am not an advanced Java user myself. What I want to do is create an app that subscribes to social networking sites, e.g. Twitter, and downloads new content. I think I'll need a web service to do this and I am wondering whether anyone has done anything like this before and whether anyone can give me a kick start and send me in the right direction. Sorry if that's not much info, I am in investigative mode to see whether this can be done.

    Thanks!

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    You just need to connect to the feed and decode the xml data. URLConnection and a simple XML parser is all you need.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    einarb is offline Member
    Join Date
    Mar 2009
    Posts
    22
    Rep Power
    0

    Default

    You could take a look at rome for parsing or creating rss or atom feeds.

  4. #4
    richiebabes is offline Member
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    0

    Default

    Rome is the capital of Italy.

    Afraid I don't follow!

    Let's say all I want is the XML for someone's latest blog post. I don't need to parse it, just grab it as a file and store it.

  5. #5
    richiebabes is offline Member
    Join Date
    Jun 2009
    Posts
    3
    Rep Power
    0

    Default

    Also I heard that URLConnection has problem with hanging if there's nothing coming down the pipes.

  6. #6
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Well if you're trying to download something that isn't there there's not much you can do anyway.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  7. #7
    einarb is offline Member
    Join Date
    Mar 2009
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by richiebabes View Post
    Rome is the capital of Italy.
    Well... a nice article about ROME for you...
    Manage RSS feeds with the Rome API - JavaWorld

    or if I felt like being plain mean, i could provide you with this link:p

    Of course if you don't need all the functionallity of managing different types of seeds (different rss versions, atom versions and so on), it's easier to just write your own xml parser and use URLConnection.

Similar Threads

  1. web service database help
    By fiqueudrue in forum New To Java
    Replies: 3
    Last Post: 01-23-2009, 03:43 PM
  2. Print Service
    By Unite in forum Advanced Java
    Replies: 0
    Last Post: 01-14-2009, 10:20 AM
  3. Problem of Web Service
    By nihongbin in forum XML
    Replies: 1
    Last Post: 12-11-2008, 05:20 AM
  4. line feed in CSV
    By javaplus in forum New To Java
    Replies: 2
    Last Post: 01-24-2008, 04:46 PM
  5. Web Service from JSP
    By Eric in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-02-2007, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •