Spring framework provides remoting support for web services via JAX–WS, in fact, as stated in Spring reference documentation, there are three ways of exposing Spring POJO services as a JAX–WS web services :
- Exposing Servlet – based web services (suitable for Java EE 5 environments)
- Exporting standalone web services (suitable when utilizing Sun's JDK 1.6 build–in JAX–WS provider)
- Exporting web services using the JAX–WS RI's Spring support (similar to the standalone approach, but this time in a Servlet environment. Suitable for non – Java EE environments such as Tomcat, embedding the JAX–WS RI as part of the web application)
Selecting one of the three approaches mentioned above depends mainly on your execution environment. Having said that, we will show you how to setup and expose a simple Spring service using all of the above approaches.
Read more at