I am calling a web service written in .NET located remotely running under IIS Server.
I created a stub to call the web service using apache axis 1.4. The web service uses NTLM authentication. I try to invoke the web service in this way but the error it's always the same : (401)Unauthorized.
How can I do it?
final String authUser = "username";
final String authPassword = "password";
Stub client = new Stub();
client.setUsername(authUser);
client.setPassword(authPassword);
client._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
Output output= client.getService();
When the web service is not in .NET and it doesn't have NTLM Authentication the client in Axis 1.4 works.