ISSUE
When using the Call Web Service action in a SharePoint On-Premises environment, the action fails regardless of what credentials are used.
ERROR CODE
The Remote Server Returned An Error: (401) Unauthorized
RESOLUTION
- Attempt to access the web service end point via the browser on all Web Front End servers.
- Locate the server where the web service end point fails.
- Execute one of the following steps to disable loopback check on the Web Front End server:
- Via an administrator SharePoint Management Shell window run: New-ItemProperty HKLM:SystemCurrentControlSetControlLsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword
- Manually disable loopback checking in the registry:
- navigate to: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa
- Create a DWORD32 entry for DisableLoopbackCheck
- Set the value to 1
RELATED LINKS
DisableLoopbackCheck. Lets do it the right way