Web service error (401) unauthorized

Hello All,

I have created on web service consumers.

In a LotusScript agent I have this following code

Dim objWSDL As New SMS_Receive_Confirm_ServiceSoap_n1
Dim objresult As New EmailOptOutConfirmResponse_n1

uid=“xyz”
psw=“12345678”

Call objWSDL.Setcredentials(uid, psw)

Set objresult=objWSDL.Optoutemail(“abc.def@yahoo.com”)

While I am running this code I am getting “(401) unauthorized” from server console. Web service is secured through the Active Directory authentication. When I am removing all authentication from web service, it is working fine. Here I am using one service account for securing this web service.

Can any one help me on this, what is the issue.

Thanks and regards,

Sandip

Subject: Have you test this web service using other tools ?

Authorisation error is usually a literal error, meaning that there is either there is a problem with your supplied credential or the authentication process. Testing that web service with other tools help to ensure that both your credential and the authentication process works.

Subject: Domlog

Are you capturing login attempts in domlog? What shows up in there for login name? I needs to match exactly to what AD has.

Subject: Web service error (401) unauthorized

It is tested in .net and it is working fine.