470,588 Members | 2,142 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,588 developers. It's quick & easy.

Unauthorized Error Calling Web Service

Hi,

try to set the PreAuthenticate property on the client proxy to true - i never needed this but the docs sound like that this could solve your problems.

---
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices/<05**********************************@microsoft.co m>

I have an application calling a web service on a different machine. The
application code runs under a local user account on the application server.
The account (identical username/password) is created on the web service
server. The web service uses Windows integrated security and ACLs are set on
the web service to allow the remote application to use it.

The problem is that everytime IIS' is recycled, I get an "unauthorized"
error on the FIRST call to the web service. Subsequent calls are fine. There
seems to be some type of retry process as I get the error first, and then the
data. The IIS log sample below shows that, with two 401 error codes and one
200 code. These three lines are ONE call to the web service from an
application point of view. I actually have two different web services that
behaves identically. Here's a sample of the IIS log:

2004-08-17 09:59:35 XXX.XX.XX.XXX POST
/AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 - XXX.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+ Protocol+1.1.4322.573) 401 2 2148074254
2004-08-17 09:59:35 XXX.XX.XX.XXX POST
/AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 - XXX.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+ Protocol+1.1.4322.573) 401 1 0
2004-08-17 09:59:35 XXX.XX.XX.XXX POST
/AppCommonWebS/Classes/clsAPP_EmployeesWebS.asmx - 80 PC12\APPUSER
XXX.XX.XX.XX Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+ Protocol+1.1.4322.573) 200 0 0

--
Thank you.

[microsoft.public.dotnet.framework.webservices]
Nov 21 '05 #1
0 2134

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Vijayakrishna Pondala | last post: by
reply views Thread by Kyle Baley | last post: by
1 post views Thread by Phil396 | last post: by
1 post views Thread by Dave | last post: by
reply views Thread by Francois Guerin | last post: by
2 posts views Thread by ALI-R | last post: by
reply views Thread by David Davis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.