Forum Discussion

afroz's avatar
afroz
Occasional Contributor
12 years ago

The HTTP Request Unauthorized. Header Authentication Failed

Hi ,

Can some one please help on this error.While sending the request i am facing this issue.



Where can i add the header authentication in webserive request.Below you can find the code.





Sample Code:



  Set MyWebService = WebServices.WebService2

  Set Crd = MyWebService.Credentials

  Crd.UserName.UserName="user4"

  Crd.UserName.Password="p"

  resultvalue1=WebServices.WebService2.setStrategyApproved(168526,110413,"MID_OFFICE",True,1,False)