CAMEL-9337 Add readme.txt to all examples
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/85025756 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/85025756 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/85025756 Branch: refs/heads/master Commit: 85025756fc526448f4f1697926c8e5cbec4db78d Parents: 403089f Author: gautric <gaut...@redhat.com> Authored: Wed Dec 9 19:36:43 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Dec 10 07:44:59 2015 +0100 ---------------------------------------------------------------------- examples/camel-example-cxf-tomcat/README.md | 71 +++++++++++++++++++++++ examples/camel-example-cxf-tomcat/README.txt | 60 ------------------- 2 files changed, 71 insertions(+), 60 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/85025756/examples/camel-example-cxf-tomcat/README.md ---------------------------------------------------------------------- diff --git a/examples/camel-example-cxf-tomcat/README.md b/examples/camel-example-cxf-tomcat/README.md new file mode 100644 index 0000000..b2e4abe --- /dev/null +++ b/examples/camel-example-cxf-tomcat/README.md @@ -0,0 +1,71 @@ +# Camel CXF (code first) and Apache Tomcat example + +### Introduction +An example which uses code-first to expose a web service in Camel running on Apache Tomcat. + + +### Build +It can be run using Maven. + +You will need to first need to build the example: + + mvn clean install + +### Run + +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 +([http://mojo.codehaus.org/tomcat-maven-plugin/usage.html](http://mojo.codehaus.org/tomcat-maven-plugin/usage.html)), you can simply +run `mvn tomcat:deploy` (also `tomcat:undeploy`, `tomcat:redeploy`, etc.) +to install the WAR file. + +The webservice is located at + + [http://localhost:8080/camel-example-cxf-tomcat/webservices/incident?wsdl](http://localhost:8080/camel-example-cxf-tomcat/webservices/incident?wsdl) + +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="http://schemas.xmlsoap.org/soap/envelope/"> + <soap:Body> + <ns1:reportIncident xmlns:ns1="http://incident.cxf.example.camel.apache.org/"> + <arg0> + <details>blah blah</details> + <email>davscl...@apache.org</email> + <familyName>Smith</familyName> + <givenName>Bob</givenName> + <incidentDate>2011-11-25</incidentDate> + <incidentId>123</incidentId> + <phone>123-456-7890</phone> + <summary>blah blah summary</summary> + </arg0> + </ns1:reportIncident> + </soap:Body> + </soap:Envelope> + + <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> + <soap:Body> + <ns1:statusIncident xmlns:ns1="http://incident.cxf.example.camel.apache.org/"> + <arg0> + <incidentId>456</incidentId> + </arg0> + </ns1:statusIncident> + </soap:Body> + </soap:Envelope> + +### Documentation + +This example is further documented at + [http://camel.apache.org/cxf-tomcat-example.html](http://camel.apache.org/cxf-tomcat-example.html) + +### Forum, Help, etc + +If you hit an problems please let us know on the Camel Forums + [http://camel.apache.org/discussion-forums.html](http://camel.apache.org/discussion-forums.html) + +Please help us make Apache Camel better - we appreciate any feedback you may +have. Enjoy! + +------------------------ +The Camel riders! \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/85025756/examples/camel-example-cxf-tomcat/README.txt ---------------------------------------------------------------------- diff --git a/examples/camel-example-cxf-tomcat/README.txt b/examples/camel-example-cxf-tomcat/README.txt deleted file mode 100644 index 271e10b..0000000 --- a/examples/camel-example-cxf-tomcat/README.txt +++ /dev/null @@ -1,60 +0,0 @@ -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 -(http://mojo.codehaus.org/tomcat-maven-plugin/usage.html), you can simply -run "mvn tomcat:deploy" (also "tomcat:undeploy", "tomcat:redeploy", etc.) -to install the WAR file. - -The webservice is located at - http://localhost:8080/camel-example-cxf-tomcat/webservices/incident?wsdl - -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="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Body> - <ns1:reportIncident xmlns:ns1="http://incident.cxf.example.camel.apache.org/"> - <arg0> - <details>blah blah</details> - <email>davscl...@apache.org</email> - <familyName>Smith</familyName> - <givenName>Bob</givenName> - <incidentDate>2011-11-25</incidentDate> - <incidentId>123</incidentId> - <phone>123-456-7890</phone> - <summary>blah blah summary</summary> - </arg0> - </ns1:reportIncident> - </soap:Body> -</soap:Envelope> - -<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Body> - <ns1:statusIncident xmlns:ns1="http://incident.cxf.example.camel.apache.org/"> - <arg0> - <incidentId>456</incidentId> - </arg0> - </ns1:statusIncident> - </soap:Body> -</soap:Envelope> - -This example is further documented at - http://camel.apache.org/cxf-tomcat-example.html - -If you hit any problems please let us know on the Camel Forums - http://camel.apache.org/discussion-forums.html - -Please help us make Apache Camel better - we appreciate any feedback you may -have. Enjoy! - ------------------------- -The Camel Riders!