Another way in JAVA would be:
ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd);
source share