In the previous recipe, we saw how easy it can be to deploy a RESTful service using CXF and Karaf. Now, we will explore how to deploy a WSDL first CXF endpoint using Camel. This is a good way to implement integration routes that expose web services. Uninstall the
recipe2 code before going ahead with this recipe
The example code for this recipe is in the
chapter5-recipe4 example of the code bundle. More than likely, you have already built the code, but just in case, go ahead and run the
mvn clean install command against the
chapter5 folder. This will build and move the bundle to the Maven repository for deployment in Karaf.
Notice that there is the following line in the console for the build:
[INFO] --- cxf-codegen-plugin:2.7.4:wsdl2java (generate-sources) @ chapter5-recipe4 ---