Java
Spring + CXF + Maven
(added: 2008.04.06)
I've been diving into Spring and Maven for few weeks now and I pretty much like them. Also I've been studing web services for 2 years and I can only say that every development of Web service in Java was painfull. Don't get me wrong, there are integrated development environments (Netbeans or Eclipse or ...) that can help you build the service but when it comes to easy integrate it into build process of a project you get stuck with making your own Ant script for building service and project together. That was so before Maven.
I've been trying JWSDP (JAX-RPC), Axis, XFire with Ant and none of that was good enough - because of the deployment descriptors (jax-rpc.xml) or in Axis case (server-config.wsdd). I've used JAX-RPC almost always, but XFire is really elegant and easy so it was good in many cases. The project is no longer active and I switched to Apache CXF aka XFire 2.0.
At first I thought, here is another complicated framework for building Web services, and I still thinks so :). But, I've decided to gave it a shot.
When I was reading Apache CXF 2.0 User's guide, I couldn't find default Hello World project - that is built using Maven. That's why I created an Eclipse Maven project.
I've also added how to use WS-Security UsernameToken and how to use wsdl2java tool for building source from WSDL files. The whole project uses Spring and runs on Jetty (also fetched from Maven).
Download Spring + CFX + Maven - Hello World project in Eclipse
Useful links (reused in making this simple example project):
- A Simple JAX-WS service
- Building your CXF project with Maven
- CXF, Spring and WS-Security putting it all together - part 1
- Other CXF Resources and Articles
External resources: