rob
rob

Reputation: 83

How do I set up a Camel route between two CXF endpoints where the SOAP faults are transferred correctly?

I set up a route between two CXF endpoints up like this:

<cxf:cxfEndpoint id="monitoringService"
  address="${esb.monitoring-service.ep.address}" serviceName="s:monitoring-service"
  endpointName="s:portSOAP" wsdlURL="classpath:/webservices/monitoring-service.wsdl"
  xmlns:s="http://xyz/monitoring/"
/>

<endpoint
  id="originMonitoringService"
  uri="${origin.monitoring-service.ep.address}" />

<route>
  <from uri="cxf:bean:monitoringService?dataFormat=MESSAGE" />
  <to ref="originMonitoringService" />
</route>

However when there are SOAP faults happening at the 'originMonitoringService' then they seem not to be forwarded to the endpoint published by Camel and as such do not reach the client that is connecting to it.

How am I supposed to declare this connection?

(Just FYI: ${xx}-style variable are properly replaced with values like http://somehost/someservice at runtime.)

Upvotes: 0

Views: 748

Answers (1)

Willem Jiang
Willem Jiang

Reputation: 3291

This issue should be fixed by CAMEL-4570

Upvotes: 1

Related Questions