barryc
Cloud Wanderer

Authentication problem using Call a Web Service action

Jump to solution

I have two web apps running on the same box / domain. Each of them uses ADFS authentication however they have also been extended to include windows authentication running on port 8443. As far as I can tell, both are set up exactly the same way.

 

In web app 1 we quickly realised that web service calls had to be made via the :8443 windows auth URL. No problems there. All is good. Web service calls execute just fine.

 

However, web service calls attempted via the Call a Web Service action in web app 2 behave strangely. Firstly I can browse to the web service definition without issue:

 

e.g. https://WEBURL2:8443/_vti_bin/lists.asmx pulls up the list of methods

 

Attempting to pull up the list of methods in the call a webservice action always gives an unauthorised error (my credential - both ADFS and domain\accountname - is site collection admin)

 

401.png

One strange thing I have noticed that may be a red herring, when I navigate to an imported web service call that already contains the method etc. and use the run now option the username field seems to be pre-populated with a random piece of HTML!

 

401-2.png

 

Replacing the username and password here with something valid still always yields - Request failed with status: Unauthorized.

 

Anyone have any thoughts? I am of course open to ideas that something is not quite the same between the two web apps.

0 Kudos
Reply
9 Replies
majid_sahib
Nintex Employee
Nintex Employee

Re: Authentication problem using Call a Web Service action

Jump to solution

Hi Barry,

Regarding the Call web service 401 unauthorised issue, have you tried opening the same web service in the browser from the server itself ? i.e you need to RDP into the server and test, does it give the same Unauthorized error?
I would check the AAM settings for both Web Apps and see if there are any differences?

Please see this MSDN link about the loop back and see if it will apply to you: https://support.microsoft.com/ja-jp/kb/896861/en-us

Thanks,

Majid

0 Kudos
Reply
Not applicable

Re: Authentication problem using Call a Web Service action

Jump to solution

Regarding the Call web service 401 unauthorised issue, have you tried opening the same web service in the browser from the server itself ? i.e you need to RDP into the server and test, does it give the same Unauthorized error?  I would check the AAM settings for both Web Apps and see if there are any differences? Please see this MSDN link about the loop back and see if it will apply to you: https://support.microsoft.com/ja-jp/kb/896861/en-us

0 Kudos
Reply
barryc
Cloud Wanderer

Re: Authentication problem using Call a Web Service action

Jump to solution

Hi Majid,

Yes I have tried opening the web service on the server. The behaviour is exactly the same as on the desktop. I can browse to the web service definition but any time I try to access it via workflow I get unauthorised.

I cannot see any difference in the AAM settings between the two web apps but I'm sure there must be something subtle there!

Thanks,

Barry

0 Kudos
Reply
majid_sahib
Nintex Employee
Nintex Employee

Re: Authentication problem using Call a Web Service action

Jump to solution

Thanks Barry,

i believe the Auth is different between WebApp1 and WebApp2. Would you be able to check the ULS log and see the stack trace when you get the Unauthorized error? it might shed a light which API is called during the authentication.

Just as a side note, would Web request action give you the same error? and also does the  Web service Studio tool  https://webservicestudio.codeplex.com/  would allow you to connect successfuly ?

Cheers,

Majid

0 Kudos
Reply
Not applicable

Re: Authentication problem using Call a Web Service action

Jump to solution

I had the same issue. Turned out to be the server loopback.

Either disable it, or configure the BackConnectionHostNames reg key

0 Kudos
Reply
jwiskema
Nintex Newbie

Re: Authentication problem using Call a Web Service action

Jump to solution

I am having the same issue.

0 Kudos
Reply
rogerliu_asa
Design Dabbler

Re: Authentication problem using Call a Web Service action

Jump to solution

Bump with same issue.

I have confirm that the account used to view the Nintex web service [Web URL]/_vit_bin/NintexWorkflow/workflow.asmx does work.  On our development server, the SharePoint web application is on http protocol, but on production it is on https. 

0 Kudos
Reply
rhia
Automation Master
Automation Master

Re: Authentication problem using Call a Web Service action

Jump to solution

‌ 

did this work for you? Let me know and I'll mark it correct

rhia

0 Kudos
Reply
barryc
Cloud Wanderer

Re: Authentication problem using Call a Web Service action

Jump to solution

Hi Rhia, sorry I cannot say...I never did find a solution for this and ultimately it was left unresolved. If a registry key was the issue I'm not sure why one web app would work properly and not the other?

View solution in original post

0 Kudos
Reply