Spring Web Services

Recently I was trying to explore Web Services using Spring i.e. Spring WS. So I went through the official documentation of Spring WS and after traversing it a bit I found it quite easy to configure and the concept of Contract First Web Services makes it more interesting keeping in mind all the real time situations.

So I decided to prepare a demo application to get an idea about its various features and believe me starting from configuring to testing my first Spring-based web services was really cool except in some places where I got stuck like the endpoint url for invoking the Web Services as the service endpoint url for invoking the web services and the one present in the generated WSDL are not identical, so I had a little hard time in figuring the right endpoint url for invoking the service. The WSDL generated here from a xsd with the help of a Spring injected (in Configuration File SpringWSApplicationConfig.java) bean seems to me more of a request response format for a particular web service, Please let me know me if I am not correct :-)...

So, in this tutorial I am going to share my experience with Spring Web Services. I will not be going into the details of all the annotations and the description of various components of SpringWS as those elements are covered in a comprehensive manner in the official documentation site. I will mainly be concentrating on various basic configurations required to startup a very basic web service and some other interesting and useful features. I have used here java based configuration instead of xml based.

spring-ws-part-1

Comments

Popular posts from this blog

Use of @Configurable annotation.

Spring WS - Part 5

Spring WS - Part 4