Getting this error while calling the service.
401 - Unauthorized: Access is denied due to invalid credential
I tried creating a NtlmAuthenticator class which extends Authenticator and passing on the credentials with DOMAIN\USERNAME and PASSWORD format. Also set Authenticator.setDefault(ntlmAuthenticator). Doesnt't works out.
Any response would be very helpful.