Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Available as of Camel 2.8

Info
titleSpring-DM vs. OSGi Blueprint

This example uses Spring DM for OSGi. There is another CXF Example OSGi Blueprint that uses Blueprint.

The example is in the examples/camel-example-cxf-osgi directory.

A simple example which receives web service calls (via a CXF consumer, using bean binding) and write these requests into the file system. It's not a very useful use case, but the goal of this example is to show you how you can use the CXF consumer component in an OSGI environment with the OSGI HTTP service. If your target container is Apache Karaf or Apache ServiceMix, you can use PAX Web to setup and start an OSGI HTTP service. All your Camel bundles using a Camel CXF consumer can use this HTTP service and do not have to start it's own Jetty instance. Another possibility you get is, that all your provided services can share the same port.

...

ex :
--> and the message formatted that you copy in SOAPUI

Code Block
xml
xml
   
		<?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
Check the folder "target/inbox/" in your file system that a message has been arrived.

See Also