org.codehaus.xfire.transport.http.CommonsHttpMessageSender does not support NTLM authentication.
Here is snippet from XFire 1.1 about authorization:
String username = (String) context.getContextualProperty(Channel.USERNAME);
if (username != null)
{
String password = (String) context.getContextualProperty(Channel.PASSWORD);
client.getParams().setAuthenticationPreemptive(true);
state.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));
}
There should be a way to plug custom credentials to the transport stack. To workaround this I had to reimplement
whole http handling stack as subsequent layers are created as local variables instead of access by dependency.