Hi!
Long story short: We're using CXF via Apache Camel. We're trying to
switch away from AsyncHTTPConduit usage. I found that setting the
following property on Camel CXF Endpoint does prevent AsyncHTTPConduit
usage:
```
endpoint.getProperties().put(AsyncHTTPConduit.USE_ASYNC, false);
```
But this came at a cost. In testing we found that after setting that
flag, the client no longer sends NTLM authentication header against
the service in question. How should we go about retaining the original
behavior where authentication headers are still sent while not using
the asynchronous client?
Full endpoint configuration for reference
```
ServiceProperties properties;
@Bean
public CxfEndpoint service(@Qualifier("ntlmCxfEndpointConfigurer")
CxfEndpointConfigurer cxfEndpointConfigurer, CamelContext context)
throws Exception {
CxfEndpoint endpoint = (CxfEndpoint)
context.getComponent(ComponentSchema.CXF)
.createEndpoint(String.format("%s:%s",
ComponentSchema.CXF, properties.getServiceAddress()));
endpoint.setWsdlURL("classpath:wsdl/service/single.wsdl");
endpoint.setServiceNameString("{http://home.local/services}Service");
endpoint.setEndpointName(QName.valueOf("{http://home.local/services}BasicHttpBinding_IService"));
endpoint.setDefaultOperationNamespace("http://home.local/services");
endpoint.setServiceClass(IService.class);
endpoint.setDataFormat(DataFormat.POJO);
String userName = properties.getUsername();
String password = properties.getPassword();
String domain = properties.getDomain();
if (!StringUtils.isEmpty(userName) &&
!StringUtils.isEmpty(password) && !StringUtils.isEmpty(domain)) {
Map<String, Object> properties = endpoint.getProperties();
if (properties == null) {
properties = new HashMap<>();
endpoint.setProperties(properties);
}
NTCredentials credentials = new NTCredentials(userName,
password, null, domain);
properties.put(Credentials.class.getName(), credentials);
}
endpoint.setCxfEndpointConfigurer(cxfEndpointConfigurer);
endpoint.setLoggingFeatureEnabled(true);
endpoint.getProperties().put(AsyncHTTPConduit.USE_ASYNC, false);
return endpoint;
}
```