I can connect to the web service ...
I added a keystore using the command:
keytool -import -trustcacerts -file <file path/filename.cer> -alias <aliasName> -keystore <JAVA_HOME/jre/lib/security/cacerts>
gave the password as "changeit" and added the certificate to the keystore.
Now in the code I added two lines:
System.setProperty("javax.net.ssl.trustStore", "<JAVA_HOME>/jre/lib/security/cacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
also added
_call.setUsername("username"); _call.setPassword("password");
where _call is the call class call object.
And it worked !!!!!!
source share