How to pass dynamic parameters to CXF endpoint in JBoss Fuse
Issue
- How do we pass a dynamic parameter to the CXF endpoint URL ?
Example :
<cxf:cxfEndpoint id="endpoint1"
address="http://0.0.0.0:{{some.port}/{{some.proxy.port.method}}"
wsdlURL="\META-INF\wsdl\.WSDL">
</cxf:cxfEndpoint>
<camelContext id="camelContext1">
<cxf:cxfEndpoint id="endpoint2"
address="http://{{host}}:{{port}}/{{service.url}}"
wsdlURL="\META-INF\wsdl\.WSDL">
</cxf:cxfEndpoint>
<route id="route1">
<from uri="cxf:bean:endpoint1"></from>
<to uri="cxf:bean:endpoint2?DYNAMIC_PARAM=HELLO&DYNAMIC_PARAM2=HI"></to>
</route>
</camelContext>
- Here,
DYNAMIC_PARAM=HELLO&DYNAMIC_PARAM2=HIare the parameters. The values, 'HELLO' and 'HI' come from the original soap message that triggers the route passing them to the producer cxf endpoint.
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
