clientFactory.getOutFaultInterceptors().add(new LoggingOutInterceptor()); CXFWSS4JOutInterceptor outSecurityInterceptor = new CXFWSS4JOutInterceptor(getServiceConfiguration().getBusSecurity()); clientFactory.getOutInterceptors().add(outSecurityInterceptor); clientFactory.getOutFaultInterceptors().add(outSecurityInterceptor); if (getCredentialsSource() != null) { clientFactory.getOutInterceptors().add(new CredentialsOutHandler(getCredentialsSource(), getServiceConfiguration())); WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps); clientFactory.getOutInterceptors().add(wssOut); clientFactory.getOutFaultInterceptors().add(wssOut);
c.getInFaultInterceptors().addAll(getInFaultInterceptors()); if (getOutFaultInterceptors() != null) { c.getOutFaultInterceptors().addAll(getOutFaultInterceptors());
c.getInFaultInterceptors().addAll(getInFaultInterceptors()); if (getOutFaultInterceptors() != null) { c.getOutFaultInterceptors().addAll(getOutFaultInterceptors());