CXF Example OSGi BlueprintAvailable as of Camel 2.8
A simple example which receives web service calls (via a CXF consumer, using bean binding) This example is located in the examples/camel-example-cxf-blueprint directory of the Camel distribution. You will need to compile this example first: mvn install To run the example on Apache ServiceMix 4.x or Apache Karaf 2.x 1) launch the server karaf.bat Note for Karaf 2.2.x:
jre-1.6=, \
com.sun.org.apache.xerces.internal.dom, \
com.sun.org.apache.xerces.internal.jaxp, \
b) from the same file comment out the following exports already provided by the bundles 2) Add features required features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features features:install war features:install cxf features:install camel-jaxb features:install camel-blueprint features:install camel-cxf Note: Apache Camel 2.9.0 is being used above, but you should of course change the 3) Deploy the example bundle osgi:install -s mvn:org.apache.camel/camel-example-cxf-blueprint 4) Verify that your service is available using the following url in the browser.
http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl
5) Start SOAPUI ex : <xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header /> <soap:Body> <ns2:inputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org"> <incidentId>111</incidentId> <incidentDate>2011-03-05</incidentDate> <givenName>Christian</givenName> <familyName>Mueller</familyName> <summary>Bla</summary> <details>Bla bla</details> <email>cmueller@apache.org</email> <phone>0049 69 1234567</phone> </ns2:inputReportIncident> </soap:Body> </soap:Envelope> 6) Check the file system See Also |