Is there a way to allow authentication in Domino webservices? If so, how would I do it?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
IBM has an example here. There are other options.
回答2:
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);