views:

149

answers:

4

I've been a long time lurker on SO. This is the best place I thought would could give me some suggestions.

I've been programming in Java for about 2-3 years now and want to take the turn towards webservices. So far I've been working with Swing/Web development using Struts2 Framework.

I am looking for some reading material suggestions that would get me started with Webservices from Java Web development poing of view.
Basic things I'm looking for:

How to consume/provide simple webservices?
How to decide between RestFull, WSDL, SOAP etc?
How to deploy them on the application server?
Good working examples?
Somewhat of a recent book

I look forward to some good, tried out books.

A: 
Taylor Leese
This comment from amazon scares me about this book "There is NOT even one example in this book that can run on the computer. So, how can people learn web services by this book? Who is this book for? Is it for experts of web services?"
Geoff
This is the de-facto standard java web services book. It's also the most recommended on java ranch for the web services certification (at least when I studied for it).
Taylor Leese
A: 
  • You can use Spring framework to produce and consume web service. I am suggesting it because its very easy in spring. To consume web service it uses proxies to wrap web service object which allows you to use remote object as if its local. To produce web service you do not need to change your current program you have to just mark some attributes for the object and methods. So deployment is very easy.

  • Advantages of restful are they are Lightweight , give Human Readable Results and Easy to build.

  • Advantages of SOAP are , it sticks to contract, its mainly used for enterprise application.

I would recommend you to go through these threads

http://stackoverflow.com/questions/840653/wsdl-vs-rest-pros-and-cons

http://stackoverflow.com/questions/90451/why-would-one-use-rest-instead-of-web-services

Have a look at this presentation:

http://blog.arendsen.net/wp-content/TheSpringExperienceSpringWebServices.pdf

For spring web service example

http://www.springbyexample.org/examples/simple-spring-web-services.html

Documentation for spring web service :http://static.springsource.org/spring/docs/2.0.x/reference/remoting.html

And about the books

http://www.amazon.com/Java-Web-Services-Up-Running/dp/059652112X/ref=sr%5F1%5F2?ie=UTF8&s=books&qid=1254806658&sr=8-2

Xinus
The Spring In Action book actually has a good chapter on Spring Web Services.
Taylor Leese
A: 

The SOA Cookbook is pretty up to date, very complete and recipe based with lots of examples.

Fortyrunner