Actually I am trying to call soap API in JAVA with
NTLM
authentication(username,password,domain) and SSL keystore certificate and keystore password (I tried in soapui it is working fine) same thing I need to achieve in java. Can any one guide me to achieve this in java. for NTLM authentication I referred https://github.com/sujithtw/soapwithntlm
example.
Is there any better example for this in java.
Asked
Active
Viewed 640 times
4

saikrishna
- 274
- 1
- 2
- 10
-
Some code would do for us to understand what you have done and the errors you have gotten. – Amos Kosgei Jan 09 '19 at 13:35
-
@AmosKosge i did above example but getting this error javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure – saikrishna Jan 09 '19 at 14:07
-
1as per me ssl certification not added properly – saikrishna Jan 09 '19 at 14:08
-
This line needs to have the values you have used in your SoapUI request: credsProvider.setCredentials(AuthScope.ANY, new NTCredentials("username","password","",""domain")); Replace the values for Username and password and the domain with either variables or the correct parameters. – Amos Kosgei Jan 09 '19 at 14:10
-
You may need to have the exceptions of these cases handled differently. The authentication and certificates registration into keystore. – Amos Kosgei Jan 09 '19 at 14:13
-
those credentials (username ,password,domain) i added but same issue – saikrishna Jan 09 '19 at 14:16