Posted: March 13, 2012 in Random Posts

Java and Spring development


This tutorial demonstrates how to develop a web service with Spring WS. It’s a contract first web service that uses JAXB for the binding. The focus area is how to configure and use Spring WS. Details about how to create an XSD schema and JAXB classes are explained in this tutorial.

I will also briefly show exception handling and validation support in relation to SOAP faults. But first some words about the contract first part.

Generate an XSD schema and JAXB classes

The sample XML request document that I will create an XSD schema from:

And the corresponding response document:

After some tweaking, the XSD schema looks like this:

After I have generated the JAXB classes, the source folder containing generated classes looks like this:

Now I have created the data contract part of the WSDL and generated the data binding classes used to parse the Java object…

View original post 1,008 more words

  1. facebook fans says:

    You completed some nice points there. Used to specific searches about them matter and located a lot of people goes as well as with all your blog.


  2. computer mouses says:

    exceptional site post. I will bookmark to check out far more often. I really like your website template


  3. trilastin sr reviews says:

    Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It’s very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.


  4. Stanley Mcgowan says:

    A interesting post there mate . Thank you for the post !


  5. Pretty great post. I just stumbled upon your blog and wanted to say that I have truly enjoyed browsing your blog posts. After all I will be subscribing on your feed and I am hoping you write again very soon


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s