wood burning stoves*
The moose likes Web Services and the fly likes How to write a RESTful web service with Eclipse tutorial that assumes very little? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to write a RESTful web service with Eclipse tutorial that assumes very little?" Watch "How to write a RESTful web service with Eclipse tutorial that assumes very little?" New topic
Author

How to write a RESTful web service with Eclipse tutorial that assumes very little?

Oliver Chase
Greenhorn

Joined: Feb 09, 2010
Posts: 15
Hi,

I am a greenhorn. I can read, understand, and write java. But not enterprise java. I have been reading up on what an EJB is and JAX-B, JAX-RS, and annotations are. However, I can't seem to put everything together.

Is there a good tutorial that explains how to write a RESTful service aimed at newbies? Many of them leave out steps and say "do this" and assume prior knowledge. I simply can't follow them. To make matters worse, I need to use Eclipse and RestEasy (most tutorials use Netbeans and Jersey) Can someone recommend me the best course of action to take? Basically, I'd like something to hand hold me, give me training wheels, talk to me like I'm an idiot, and then let me spread my wings and fly. Right now I'm looking at tutorials spread out over the net, and I get bits and pieces, but it seems really inefficient. I just want one example in Eclipse that I can study so that I can see how all of the moving parts fit together.

Thanks!
nithin chinni
Ranch Hand

Joined: Dec 02, 2010
Posts: 41
well I have started learning webservice. To have a good start, use "myeclipse" and the tutorial that they gave for that. Almost everything is set up .
Oliver Chase
Greenhorn

Joined: Feb 09, 2010
Posts: 15
Thanks for your advice. I saw the myeclipse tutorial, but I quit reading because myeclipse is not free, correct? I don't want to pay a yearly fee to use eclipse.
Oliver Chase
Greenhorn

Joined: Feb 09, 2010
Posts: 15
So for examples of the things that I don't understand and wish people would explain better are in this popular tutorial. I get lost on step 2:

http://www.mastertheboss.com/web-interfaces/273-resteasy-tutorial-.html

2) Older JBoss releases

If you have got any other JBoss AS release you have to perform a few basic steps for installing RESTEasy:

Step 1# Download Resteasy from the Repository
The first step is to download the latest Resteasy stable release from:
http://sourceforge.net/projects/resteasy/files/Resteasy%20JAX-RS/

Step 2# Add the following libraries to your Web application:



I have downloaded the stable resteasy. Then it says to add resteasy to your web application. Well, I'm not sure how to start a web application.

Step 3# Define listeners and bootstrap classes:


I do not know what a boostrap class is.

Some tutorials also use Maven. Well, I know what Maven is, I even have it installed, but I don't know how to incorporate it.

These are examples of the many moving parts that get me confused into just a simple service. I actually understand the service code; it's the "plumbing" and set up that I am finding too confusing now.

Thanks
Chandana Ggurusinghe
Greenhorn

Joined: Mar 20, 2013
Posts: 2
I also had the same problem, I found this site
It containing good/simple example, you can give a try.

http://lasithtechavenue.blogspot.com/2012/12/implementing-rest-service-with-java.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write a RESTful web service with Eclipse tutorial that assumes very little?
 
Similar Threads
JSP to connect to a web service
Which JAR for javax.ws.rs.Path?
Total newby question
Is there a tutorial for SOAP 1.2 HTTP GET using JAX-WS?
Help required: Compiling/Deploying a RESTful web service