Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RESTful  RSS feed

 
Kalaiyarasi Ramachandran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My mini project is to develop RESTful web services for corporate updated news like i google. i have to fetch data from RSS feed in differnt corpaorates web sites. i plan to use Java. Please help me how to build , what are the processes, what are the tools are required. i refered developerworks. they given details in spring framework. I used DOM parser used to fetch RSS feed into java code. i dont know how to fetch data from mulitiple rss feeds.
i don't know the clear idea. please help me.



Thank You
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm stumped (and curious) - how does one build a "RESTful WS using RSS"? Or rather, how would it work? What does a REST WS have to do with RSS? I've never heard of that.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say it largely depends on the environment where your application should run. Should it be a Java standalone application? Running inside a Servlet container? Inside an application server? OSGi container?

There are many frameworks and tools to support the implementation of REST webservices. Depending on the mentioned environments or platforms there may be out-of-the-box support for REST. For standalone applications JBoss RESTEasy or the Restlet framework may be good candidates. Many web frameworks allow to implement REST services without additional frameworks. The JEE platform has built-in support in the form of the JAX-RS API. There are more than enough tools and frameworks. I think the bigger challenge is how to design a good web API which is really RESTful.

@Ulf: It's not uncommon to use the Atom format or something like that as a media type for REST resources. I guess that's what the OP meant.

Marco
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you could think of an RSS feed as a read-only RESTful resource. Interesting, that had never occurred to me.
 
Kalaiyarasi Ramachandran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i planned to devlop RESTful web services for corporate updated news. i fetch data from RSS feed in differnt corpaorates RSS feed.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you really need RESTful webservices for this problem? Just because you are consuming and publishing XML via HTTP doesn't mean that it is a REST architecture (and maybe you don't really need one).

To parse some XML feeds and compose other XML feeds with the aggregated content you probably don't have to worry too much about REST principles and tools. Of course a handful of RSS feeds CAN be designed with a REST API but don't make the solution more complex than it has to be. Maybe a simple HTTP client library and a Servlet container will do fine.

Marco
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "REST API" - REST is an architecture for strict use of HTTP methods.

Individual REST toolkits may have an API but you don't need a toolkit to make a RESTful service, just pay attention to the architectural principles.

Bill
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for hint! Maybe my wording was rather unfortunate. What I really meant was that it would be possible to expose some RSS feeds as a web API which adheres to REST principles. Of course there isn't such a thing like a REST API.

Marco
 
Kalaiyarasi Ramachandran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marco Ehrentreich wrote:Are you sure you really need RESTful webservices for this problem? Just because you are consuming and publishing XML via HTTP doesn't mean that it is a REST architecture (and maybe you don't really need one).

To parse some XML feeds and compose other XML feeds with the aggregated content you probably don't have to worry too much about REST principles and tools. Of course a handful of RSS feeds CAN be designed with a REST API but don't make the solution more complex than it has to be. Maybe a simple HTTP client library and a Servlet container will do fine.

Marco


Hi,
My idea is to use REST architecture when i invoke back end from front end via get,post,put methods.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!