This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Sep 30, 2015, 12:20 PM
7 Posts

Web service error (401) unauthorized

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 3

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

 

Oct 1, 2015, 1:11 AM
43 Posts
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.

Oct 1, 2015, 1:27 AM
326 Posts
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.

Oct 1, 2015, 7:21 AM
7 Posts
Web service error (401) unauthorized

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


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal