CXF Maven Archetypes
About this task
Apache CXF provides a Maven archetype for creating Java-first web services. In the this section we'll explore using it along with the Eclipse's m2eclipse plugin. Open Eclipse:
Procedure
Results
We have the project skeleton that we can start from now, and add Java methods to represent web service operations we wish to implement. "HelloWorld.java" is the simple interface that this archetype generates, along with an ready-to-run implementation (HelloWorldImpl.java) of it. Of course both can be changed when implementing your own web service provider.
Since the CXF Maven archetype does not provide a test SOAP client or provide OSGi deployment capability, in the next sections we'll show how to manually add in OSGi configuration as well as use soapUI to make SOAP calls.