@Override protected void configureInterceptors(Client client) { super.configureInterceptors(client); client.getEndpoint().getService().setDataBinding(new PlainXmlDataBinding()); if (auditStrategy != null) { AuditResponseInterceptor<Hl7v3AuditDataset> auditInterceptor = new AuditResponseInterceptor<>(auditStrategy, auditContext, true, null, false); client.getOutInterceptors().add(auditInterceptor); client.getOutFaultInterceptors().add(auditInterceptor); } } }
@Override protected void configureInterceptors(Client client) { super.configureInterceptors(client); // install auditing-related interceptors if the user has not switched auditing off if (auditStrategy != null) { if (wsTransactionConfiguration.isAuditRequestPayload()) { installPayloadInterceptors(client); } client.getOutInterceptors().add(new AuditOutRequestInterceptor<>( auditStrategy, auditContext, correlator, getWsTransactionConfiguration())); AuditResponseInterceptor<AuditDatasetType> auditInterceptor = new AuditResponseInterceptor<>(auditStrategy, auditContext, false, correlator, false); client.getInInterceptors().add(auditInterceptor); client.getInFaultInterceptors().add(auditInterceptor); } } }