• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help needed in creating a webservice using REST

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic