After 6 months of work, Spring Web Services 1.5.0 has been release. Based off contract-first development using SOAP service development, Spring-WS can be manipulated through XML to create document-driven Web services. Some of the highlights of the release include:
-
Two new transports: JMS and email, both for client and server
-
WSS4J-based WS-Security implementation, which allows for WS-Security on non-SUN JDKs (i.e. WebSphere) and JDK 1.4
-
WS-Addressing support for both client and server, supporting the August 2004 and final versions of the specification
Arjen Poutsma goes into detail about how some of the new features work, showing how these new changes can be implemented. There are examples of how to implement the new transports as well as an overview of some of the other features in this release. Aljern also provides feedback on design decisions and future functionality of Spring-WS.
Other feature include:
-
Spring-WS jars are now OSGi bundles,
-
A new, client-side interception mechanism, including WS-Security support,
-
@Endpoints are now @Components, so they are automatically picked up when using Spring 2.5 component scanning
The 1.5 release is 95% backwards compatible, and comment in the Spring forums have been positive when it comes to upgrading For a full list of the features in the release see the release announcement. Also see a recent InfoQ interview with Arjen Poutsma that goes more into detail about Spring-WS and some if its methodologies.
Community comments
osgi and web services.
by Christopher Brind,
Re: osgi and web services.
by Arjen Poutsma,
Re: osgi and web services.
by ant elder,
Building a web service with Spring-WS
by Shameer Kunjumohamed,
osgi and web services.
by Christopher Brind,
Your message is awaiting moderation. Thank you for participating in the discussion.
can this turn an osgi service in to a webservice? i.e. if i register an osgi service in the standard way, can spring turn that in to a webservice for me?
if not, does anyone know something that can?
thanks in advance.
Re: osgi and web services.
by Arjen Poutsma,
Your message is awaiting moderation. Thank you for participating in the discussion.
No, Spring Web Services cannot turn a OSGi service into a Web Service. I currently know of no framework which can. In fact, I'm not so sure it's a good idea. OSGi services are plain classes, designed for local invocation, and thus have a fine-grained interface. The sweet spot for Web services is a course-grained interface, preferably designed in a contract-first fashion.
Re: osgi and web services.
by ant elder,
Your message is awaiting moderation. Thank you for participating in the discussion.
Apache Tuscany SCA supports this with the implementation.osgi and binding.ws extensions. If you'd like more info just ask on the
mailing list and I'm sure someone would help get you going.
Building a web service with Spring-WS
by Shameer Kunjumohamed,
Your message is awaiting moderation. Thank you for participating in the discussion.
Please take a look at an article describing the steps involved in building a web service with Spring-WS, using JAXB Marshalling in a simple way, at
justcompiled.blogspot.com/2010/09/building-web-...