Wednesday, May 2, 2012

Spring Web Services 2 Cookbook Review


Today, I will digress from my usual tutorials and guide format. Instead, I will provide a review of the Spring Web Services 2 Cookbook published by Packt. For the impatient, get the book! You won't regret it.

What is Spring Web Services 2 Cookbook?

Spring Web Services is a product of the Spring community focused on creating document-driven Web services.

Spring Web Services aims to facilitate contract-first SOAP service development, allowing for the creation of flexible web services using one of the many ways to manipulate XML payloads.

This comprehensive guide -- which provides professional expertise on a variety of technical topics right from setting-up a contract-first Web-Service, creating client of a Web-Service to serialization, monitoring, testing and security using Spring-WS -- helps you enhance your skills in Spring Web Services.

Spring Web Services 2 Cookbook includes a wide variety of recipes that covers most important topics used in real-world applications. It is a well-rounded guide covering a lot of ground in the Spring Web Services domain using systematic arranged chapters and focused recipes.

Source: Spring Web Services 2 Cookbook

The Good

The Spring Web-Services Cookbook 2 is an excellent resource for any developer who wants to incorporate Spring web service support in their projects. It covers everything from setting a simple web service provider to a highly secured, asynchronous web services leveraging various transports such as XMPP, JMS, and email (besides plain vanilla HTTP).

This book is also an outstanding reference for anyone who aspires to master the Spring web service. It discusses contract-first and contract-last development using actual samples, testing support with TCPMon and soapUI, handling and providing custom exceptions.

I'm surprised by the book's intensive coverage on marshalling. It even includes steps for MooseXML. What's even better with this book is it goes beyond simple and complex SOAP-based web services. Instead, the book also tackles topics on how to setup REST-based web services and other remoting technologies, i.e. RMI and Hessian.

The book has provided ample code samples with dependencies listed. If you're not a Maven user, you'll at least have an idea of what's needed. But to fully utilize the samples you must know Maven at least (if you're an avid Spring developer, this shouldn't be a problem)

The Bad

However, I do have some pointers that should have been included in the book (I know this is a cookbook).
  1. I think the book should have some basic introduction regarding web services and how SOAP or REST helps us solve our problem.
  2. The book should provide a section for newbies that demonstrates step-by-step, probably in graphical detail, on how to setup a basic web service. When reading the book, an interesting question keeps lingering on my mind: "How is a newbie supposed to understand this book without some basic experience with web services?" Maybe this is where the Spring documentation plays in?
  3. There were a couple of glaring misspellings in the initial chapters. It's somewhat distracting and somewhat's gives me the feeling if the book was rushed. One term that keeps bothering me is the usage of "web-services" versus "web services". Somehow in the book they used both terms to denote the same thing.

The Comparison

As a guide writer, I also have written tutorials for Spring WS (web service). I admit the book has more technical detail with wider coverage. But the parts that I have written provides more step-by-step information especially for newcomers. But if you want to go beyond what I have shared on this blog, you must read this definitive cookbook.


Spring Web Services 2 Cookbook is a must-have cookbook for those who want to know more about Spring Web Services. You can find more information about this book by visiting the following link:

I hope you've been enlightened with this review. Don't forget to check my tutorials at the Tutorials section for more information on Spring WS.

StumpleUpon DiggIt! Blinklist Yahoo Furl Technorati Simpy Spurl Reddit Google I'm reading: Spring Web Services 2 Cookbook Review ~ Twitter FaceBook

Subscribe by reader Subscribe by email Share


  1. Hi Krams,

    It would be a great help if you could provide the links to your webservice tutorial here..

    1. They are actually in the Tutorial section at

      See the following categories:

      Spring WS: WS-Security
      Spring WS: XPath
      Spring WS: Client
      Spring WS: Provider

      There are also integration with other Spring technologies. See category Spring Integration 2

  2. Krams, I was wondering if there is a opportunity to contact with you ? I have one question ;) Please send me a email : garcia16/at\

    1. Feel free to send me an email at krams915 at gmail dot com

      I spelled it out to avoid SPAM.

  3. Thanks krams for the review.
    As you said i am not a maven user,
    I tried couple of times googling for maven tutorials but they where to brief.
    Please share a tutorial on maven or any reference so that i can explore it more.

    1. The best way to learn is to read from various sources since some writers's style might appeal to the way you learn.

      I can't give you a particular link but if you search Google you might find something that might interests you. Again, you will have to read various sources. I think this is the nature of the open source world. Here's the Google search results link:

  4. Dear Krams,

    I need to contact concerning a project, how can I email you? here's my email


  5. Well i went through the book.And indeed your brief tutorial's are eye openers and far better for those who are new than this book.
    Thanks for your efforts

  6. This comment has been removed by a blog administrator.

  7. It's a nice blog to provide a good information. I bookmarked this blog further more useful information. Thanks for sharing this.... Web Services Company

  8. This comment has been removed by a blog administrator.

  9. I saw a new book imbibing java web services. This book looks to be a bit more promising. Have you read it?? Thanks

    1. I haven't. I will check that out. Thanks for the suggestion.

    2. Mark,
      I dowloaded a chapter(imbibing java web services) from my kindle application
      on my computer. The book seems a little simplistic.
      I really wonder why people either love this book or
      hate it....
      Does spring web serices cover the client side??
      What would recommend for portlets using spring??

      Thank you for all of your tutorials and for your help!!

  10. This book Java Training in Chennai is really useful for learning JAX-WS (SOAP based service oriented application) Java Training Institutes in Chennai and JAX-RS (RESTful Web Services) Java Web Services Online Training .

  11. I have read your blog its very attractive and impressive. I like it your blog.

    Spring online training Spring online training Spring Hibernate online training Spring Hibernate online training Java online training

    spring training in chennai spring hibernate training in chennai

  12. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    core java training in Electronic City

    Hibernate Training in electronic city

    spring training in electronic city

    java j2ee training in electronic city