-
Consume REST web services in java using rapa (8 messages)
- Posted by: Peter Varhol
- Posted on: January 29 2009 08:09 EST
I have been reading about REST webservices for quite a while now. But rails still seems to have the best support for consuming REST webservices (ActiveResource). It is magical the way active resource works. Even if the magical and dynamic behavior may not be completely possible in java, it would be helpful if we have basic support for accessing REST webservices. A few options which immediately pop up on a search would be restlet, apache cxf and jersey (reference implementation of jsr 311). But they are not as easy to use as ActiveResource and not very object oriented. The motivation behind rapa is to fill this gap. In this blog I will take you through creating a simple REST webservice with rails and then use rapa to consume it in an object oriented approach. Rapa uses the tried and tested Jakarta Commons HttpClient and JAXB. It helps you in consuming REST webservice easily by taking care of the grunt work (making connection to the webservice, transporting data etc). All that said, its time for some code. Read the rest at http://harikrishnan83.wordpress.com/2009/01/24/consume-rest-webservices-in-java-using-rapa/ .Threaded Messages (8)
- Jersey and RESTEasy alternatives by Solomon Duskis on January 29 2009 11:41 EST
- Re: Jersey and RESTEasy alternatives by shawn spencer on January 29 2009 14:10 EST
- The intent is to make as easy as Active Resource by Hari Krishnan on January 29 2009 23:25 EST
- dependent on Rails by Bill Burke on January 29 2009 22:47 EST
- It is not dependant on rails by Hari Krishnan on January 29 2009 23:15 EST
-
Re: It is not dependant on rails by Bill Burke on January 30 2009 08:55 EST
- Very good point by Hari Krishnan on February 01 2009 12:14 EST
-
Re: It is not dependant on rails by Bill Burke on January 30 2009 08:55 EST
- It is not dependant on rails by Hari Krishnan on January 29 2009 23:15 EST
- Re by Courtney adia on February 17 2011 11:24 EST
-
Jersey and RESTEasy alternatives[ Go to top ]
- Posted by: Solomon Duskis
- Posted on: January 29 2009 11:41 EST
- in response to Peter Varhol
What does this do that the Jersey client and the RESTEasy client do not? -
Re: Jersey and RESTEasy alternatives[ Go to top ]
- Posted by: shawn spencer
- Posted on: January 29 2009 14:10 EST
- in response to Solomon Duskis
What does this do that the Jersey client and the RESTEasy client do not?
You can use Spring web services and then not worry about what you use behind the scenes - axis, rest, jax-rpc etc. -
The intent is to make as easy as Active Resource[ Go to top ]
- Posted by: Hari Krishnan
- Posted on: January 29 2009 23:25 EST
- in response to Solomon Duskis
Though currently it is not as easy as active resource, the intent is to make it that way. We are working towards that and looking for suggestions. Another key consideration is to keep it as simple and as light weight as possible. Thanks for your comment. I used jersey client myself and find it very useful too. Please do send us your suggestions, and I am sure it will help us a lot. -
dependent on Rails[ Go to top ]
- Posted by: Bill Burke
- Posted on: January 29 2009 22:47 EST
- in response to Peter Varhol
Seems to be dependent on Rails and how they format requests. -
It is not dependant on rails[ Go to top ]
- Posted by: Hari Krishnan
- Posted on: January 29 2009 23:15 EST
- in response to Bill Burke
Thanks for the comment. I have used rails webservice as an example because it is easy to build. I am working on a new example using jersey to create the REST webservice and consume it with rapa. -
Re: It is not dependant on rails[ Go to top ]
- Posted by: Bill Burke
- Posted on: January 30 2009 08:55 EST
- in response to Hari Krishnan
Thanks for the comment. I have used rails webservice as an example because it is easy to build. I am working on a new example using jersey to create the REST webservice and consume it with rapa.
So, do you have to define a specific XML/JSON message format to enable this to work? That may be the more interesting part here... -
Very good point[ Go to top ]
- Posted by: Hari Krishnan
- Posted on: February 01 2009 00:14 EST
- in response to Bill Burke
As of now it supports only XML based REST services. We are working on adding JSON support in the next release. Thank you so much for the suggestion. -
Re[ Go to top ]
- Posted by: Courtney adia
- Posted on: February 17 2011 11:24 EST
- in response to Peter Varhol
I read some of your post and I learned a lot of knowledge from it. Thanks for posting such interesting articles.
Affordable seo , Affordable search engine optimization, website design company india