Spring Web Services using JAXB part-1

Hi all its long time i put pen on my blog, its now time to write some thing about Spring web services implementation. Web services implementation of Spring is the best product and now a days service driven projects are in more demand, spring web services are of two types 1.RESTful Services and SOAP services. Some of the key features of spring web services are as follows

a) XML API support: Incoming XML messages can be handled in standard JAXP APIs such as DOM, SAX, and StAX, but also JDOM, dom4j, XOM, or even marshalling technologies.

b) Flexible XML Marshalling: The Object/XML Mapping module in the Spring Web Services distribution supports JAXB 1 and 2, Castor, XMLBeans, JiBX, and XStream. And because it is a separate module, you can use it in non-Web services code as well.

c) Also, the architecture of Spring-WS resembles that of Spring-MVC.

d) Apache license. You can confidently use Spring-WS in your project.

Before moving into the coding part, the essential jars required by the project as as below.

Now its time for us to define the service contract.Service Contract

Here’s where we start our contract first approach, the Service contract. The wsdl contract can be happily generated by Spring’s DefaultWsdl11Definition later. so lets start with simple schema as below.