File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Standlaone Rest Services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Standlaone Rest Services" Watch "Standlaone Rest Services" New topic
Author

Standlaone Rest Services

Rahul Chaitanya
Greenhorn

Joined: Aug 22, 2010
Posts: 22
I will have to develop a standalone web service server with Java 5. I realised standalone jax-ws cannot be developed with java 5 and so able to figure out that a standalone Rest Services can be developed.

I will appreciate, if any body could give me a link to a good tutorial or else exaplin how do i develop a standalone web service ?

If it its not possible through REST then are there any other approaches that lets me develop standalone web service in java 5 ? Please, advice.

Thankyou,
Kireet Pola.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
All you need for a REST style web service is a HTTP server because REST just uses the HTTP methods.

Now, since Java 5 reached End of Life Status back in 2009 you may not find any REST toolkits that will work. Don't worry, RESTful concepts are simple and can be implemented in standard Java once you find a servlet container that will run under Java5.

Personally, I would seriously consider upgrading to Java 6.

Bill


Rahul Chaitanya
Greenhorn

Joined: Aug 22, 2010
Posts: 22
Thank you very much for your reply Bill.

However, I was been informed to use Axis 2 and deploy in its standalone server.

If you have any idea, can you please suggest like is it possible for any web service client to consume to web service server developed with Axis 2 ?

I am new to web services. So sorry if its basic.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
AXIS 2 is primarily a SOAP web service toolkit. The last time I looked, implementing a RESTful service with AXIS 2 was a real kludge.

Due to the standardization of SOAP, and the simple & well known architecture of REST, a web service client should not care what toolkit the server is built with or the language the server is written in, thats the whole idea.

Your big decision will be between SOAP and REST - a really big difference in architecture and attitude. So - you now need to work out the requirements of your proposed service - exactly what is it supposed to do?

Bill

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Standlaone Rest Services