blob: 271e10b1619ee050c97b98c01f9bac34fdec6b86 [file] [log] [blame]
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="">
This example is further documented at
If you hit any 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!