Greetings,

I was wondering if it was possible to overwrite a SOAP fault generated by a
CXF consumer.  Currently I have a route setup that starts from a CXF
consumer and then sends to a CXF producer.  I have schema validation turned
on in the consumer, so it seems that when an invalid message comes through,
the consumer generates a SOAP fault and passes it back without an ability to
hold it on the exchange.

Is there a way to allow the exchange to get a hold of the SOAP fault before
it is sent back?

The route is simply:

<route id="route1">
        <from uri="cxf:bean:theCXFConsumer" />
        <log message="Incoming CXF message, routing to producer" />
        <to uri="cxf:bean:theCXFProducer"/>
</route>

Since with schema validation turned on the route never gets to the log
message part I can't simply inject a processor where I could manually
control the contents of the SOAP fault, thus I am unsure if it is possible
to do this.  Anyone have an idea of how this could be done?

CXF consumer defined as:

        <cxf:cxfEndpoint
                id="theCXFConsumer"
                address="http://0.0.0.0:9191/TheWebService";
                wsdlURL="wsdl/test.wsdl"
                serviceClass="com.ihg.webservice.WebService">
                <cxf:properties>
                    <entry key="schema-validation-enabled" value="true" />
                </cxf:properties>
        </cxf:cxfEndpoint>
 

--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-and-Overriding-SOAP-Faults-tp5581028p5581028.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to