0 Replies Latest reply on Oct 24, 2016 9:26 AM by Simon Kufner

    How to add Fault Interceptors to SwitchYard application

    Simon Kufner Newbie

      Hi everybody,


      I'm currently using JBoss EAP 6.4.11 with FSW 6.3.

      I'm developing a SwitchYard application which, in case of a SOAP Fault, should augment the response message with some header properties.


      Therefore I thought of registering a cxf fault out interceptor to the service to no avail. I haven't found any documentation nor examples of how to achieve this with switchyard. I've tried by adding a cxf.xml to the classpath with following content:

      <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xsi:schemaLocation="http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
          <bean id="soapFaultInterceptor" class="framework.cxf.SOAPFaultInterceptor" />
                  <bean class="framework.logaudit.sy.LoggingOutInterceptorPostMarshal" />
                  <ref bean="soapFaultInterceptor" />

      Unfortunately this doesn't work and I don't see any logentries telling me if there is faulty behaviour.


      Can anyone point me to the right approach. Is there any info which I'm missing?


      Thank you very much for any help on this issue!

      Best regards