tree: 77b8126ded856bc1573ea7cdb238281b1018f458 [path history] [tgz]
  1. src/
  2. pom.xml

Camel CXF (code first) and Apache Tomcat example


An example which uses code-first to expose a web service in Camel running on Apache Tomcat.


It can be run using Maven.

You will need to first need to build the example:

mvn clean install


To run the example deploy it in Apache Tomcat by copying the .war located in the target directory to the deploy folder of Apache Tomcat. Alternatively, if your Tomcat installation is set up to use the Tomcat Maven plugin (, you can simply run mvn tomcat:deploy (also tomcat:undeploy, tomcat:redeploy, etc.) to install the WAR file.

The webservice is located at



You can run a sample client using the “mvn exec:java” command, or, within soapUI, making sample SOAP requests such as the following:

<soap:Envelope xmlns:soap="">
        <ns1:reportIncident xmlns:ns1="">
                <details>blah blah</details>
                <summary>blah blah summary</summary>

<soap:Envelope xmlns:soap="">
        <ns1:statusIncident xmlns:ns1="">

Forum, Help, etc

If you hit an problems please let us know on the Camel Forums

Please help us make Apache Camel better - we appreciate any feedback you may have. Enjoy!

The Camel riders!