• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed in creating a webservice using REST  RSS feed

 
Pattamuthu Aru
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have created a sample webservice using eclipse plugin and AXIS. Now i have to convert this sample application to use REST. Please help me with some sample application/code to develop a sample REST Webservices.

Thanks in advance.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to jersey.dev.java.net (Jersey is the JAX-RS reference implementation). It has lots of examples, tutorials and other documentation.

REST is rather different than SOAP, though, so it'll be more of a reimplementation than a conversion.
 
Pattamuthu Aru
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Burnham
i need to implement using AXIS 2. But this is JAX-RS. can i get some thing related to AXIS and Rest webservices
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis doesn't support JAX-RS, but it does support some form of REST.

It doesn't make sense to use Axis for REST services; I advise to go with Jersey (or some other JAX-RS implementation) instead.
 
Pattamuthu Aru
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnks Burnham, will talk to my superior about this. But it is the requirement that we should develop REST webservices using AXIS
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last time I looked, AXIS handled REST style calls by way of a Kludge which created a local SOAP request, executed it, and passed the result back as the REST result. Naturally all that SOAPing consumes time and memory, slowing up a simple REST action.

Now - that was some time ago, maybe AXIS has a clean way of really doing REST, but if I were you I would look into the details.

Bill
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!