...
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=activemq/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java} |
Here is the code that show shows how to publish the endpoint to different Camel context endpoints, you can specify the Camel endpoint uri as the endpoint address parameter.
...
JAXWS API provides the WebServiceProvider API to meet the requirement of XML lever message handling. This example is to show how to route an SOAP Message from a WebServiceProvider implementor to bean endpoint in the Camel context. Basically , we still pass the WebServiceProvider implementor as SEI, and the camel-cxf consumer CxfConsumer will pass the SOAP Message in a list of parameter parameters to camel router for further processing.
First, let's have a look at the Camel context's configuration. Here we start a camel-cxf consumer CxfConsumer to listen to the address and pass soap message to the test bean.
...