// The SoapHeaderInterceptor maps various headers onto method parameters.
// At this point, we expect all the headers to remain as headers, not
// part of the body, so we remove that one.
removeInterceptor(client.getEndpoint().getBinding().getInInterceptors(),
SoapHeaderInterceptor.class);
client.getEndpoint().getBinding().getInInterceptors().add(new ConfigureDocLitWrapperInterceptor(true));
resetPartTypes(client.getEndpoint().getBinding());
LOG.info("Initialized CXF Client: {} in Payload mode with allow streaming: {}", client, allowStreaming);
}