Over the last while I've been tearing what little is left of my hair out trying to authenticate with a web service using Domino.
I need to put it down here so I don't forget but hopefully it will be of use to someone else too.
When creating a Web Service Consumer, Domino creates the code for you based on the WSDL
The extra piece in the jigsaw is as follows:
//Code generated by Domino
Sub NEW
Call Service.Initialize ("somethingorother ", _
"somethingorother .Domino", "http://somethingorother/somethingorother?OpenWebService", _
"somethingorother ")
//Code generated by Domino
//Credential Code
Call Service.setCredentials( "Username", "Password" )
//Credential Code
//Code generated by Domino
End Sub
//Code generated by Domino
You can find this in the lsxsd.lss file
Looks like it's only for 8.5. I've tried to hack it to work in 8 but to no avail so far
Thanks Chris! This was exactly what I was looking for!
ReplyDeleteBut do you know, can I also use encrypted password there instead of palin text ?
Hi Jüri
ReplyDeleteI've not tried it.
Possibly try https:// on the endpoint and set require SSL connection on the database properties.
Even it doesn't accept an encrypted password, SSL should encrypt the traffic.
Chris -- You made my day!! Thank you for this post -- Sue
ReplyDeleteI have been looking everywhere for this - THANK YOU!! -- Jeff
ReplyDeleteThank you, Thank you, Thank you. I can't believe how long it took to find this answer.
ReplyDeleteThank you ! That helped a lot...
ReplyDeleteThank you, this was very helpful.
ReplyDeleteI was thinking about doing,something like
http://somethingorother/somethingorother?OpenWebService&username=someuser&password=somepassword.
But this post helped me.
Thank you !!!!!
ReplyDeleteFor a moment there I thought I had found the answer to my problem :(
ReplyDeleteI've got a web service consumer that crashes the notes client when it is invoked. A bit vague I know but could anyone provide any pointers as to what it could be? Thanks
Dave
Thank you !!!!!
ReplyDeleteIf you need to use SSL, adding this line will make it work:
ReplyDeleteCall Service.SetSSLOptions(NOTES_SSL_ACCEPT_SITE_CERTS + NOTES_SSL_ACCEPT_EXPIRED_CERTS)