I need to create an Domino agent that consume an ASP.NET web service. This agent, when deployed, is going to be running on the server as a scheduled agent. This .NET Web Service requires authentication.
How can I pass credentials ? I wish to avoid installing third party API on my Domino Server…
Edit:
I would think Domino Server should take care of the credential passing by assuming the identity of the agent signer? Why is it not the case? Or is there something can be done on the server side instead of me taking care of it in the code? After-all, Domino server is the one thats packaging my SOAP request?
Sub NEW
Call Service.Initialize ("UrnDefaultNamespaceListUpdatesService", _
"ListUpdatesService.Domino", "http://somewebservice?OpenWebService", _
"ListUpdates")
Call Service.setCredentials( "myid", "mypassword" )
End Sub
I don’t know a out-of-the-box-tool or lotusscript methode of domino/notes to consume a web service - normaly there are only some ways to be be a web service provider.
i know two ways to consume a web service with or without http credentials.
I am kept on getting the following error:“Err:(4746)Web Service XXXXX method YYYY error (401) Unauthorized at line 18”
But I am sure the credentials I passed has access to MS Web Server.
Is it possible that my HTTP Request is sent to IIS with Domino Server’s credential and IIS does not recognize the Domino box?
For the question about the SetCredentials method…
When you import the provider WSDL into Domino’s Script Library, it is automatically created into a class that is extending PortTypeBase class of the lsxsd.lss. PortTypeBase class uses another class called “NotesWebServiceEngine” that has a method call “SetCredentials” takes two params (username, password).