@Override protected void configureInterceptors(Client client) { super.configureInterceptors(client); client.getInInterceptors().add(new InPayloadExtractorInterceptor(SOAP_BODY)); client.getInInterceptors().add(new InNamespaceMergeInterceptor()); client.getInInterceptors().add(new InPayloadInjectorInterceptor(0)); client.getEndpoint().getService().setDataBinding(new PlainXmlDataBinding()); } }
@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); } } }
@Override public JaxWsClientFactory<WsAuditDataset> getJaxWsClientFactory() { return new JaxWsRequestClientFactory<>( getComponent().getWsTransactionConfiguration(), getServiceUrl(), null, getAuditContext(), getCustomInterceptors(), getFeatures(), getProperties(), null, getSecurityInformation()); }
@Override public JaxWsClientFactory<AuditDatasetType> getJaxWsClientFactory() { return new JaxWsRequestClientFactory<>( getComponent().getWsTransactionConfiguration(), getServiceUrl(), isAudit() ? getClientAuditStrategy() : null, getAuditContext(), getCustomInterceptors(), getFeatures(), getProperties(), getCorrelator(), getSecurityInformation()); }
@Override public JaxWsClientFactory<AuditDatasetType> getJaxWsClientFactory() { return new JaxWsRequestClientFactory<>( getComponent().getWsTransactionConfiguration(), getServiceUrl(), isAudit() ? getClientAuditStrategy() : null, getAuditContext(), getCustomInterceptors(), getFeatures(), getProperties(), getCorrelator(), getSecurityInformation()); }