473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2297

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vijayakrishna Pondala | last post by:
Hi, I am using the following C# code to connect to and download information from a URL. (The pages are on JBoss server and we are using NTLM authentication to connect to the server). ----...
0
by: Kyle Baley | last post by:
I'm developing an MCMS web service and am getting a 401 unauthorized error when I try to consume it from a client. It works fine when I use the test harness to navigate to the asmx file directly....
1
by: Phil396 | last post by:
I have a web service that works fine on the development server but will not work in production. In IIS Admin I have tried just about everything to get past the HTTP status 401:Unauthorized error...
1
by: Dave | last post by:
I'm trying to make a webrequest to another server on our webfarm (to synch the cache as explained in http://www.eggheadcafe.com/articles/20030420.asp) but I'm getting a 401 unauthorized error. ...
2
by: Sachin | last post by:
Scenario: Machine A: ASP.NET Web UI IIS 6.0 Windows Server 2003 Impersonation Account: domain\Acct1 Machine B: ASP.NET Web Service IIS 6.0
0
by: Francois Guerin | last post by:
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...
2
by: ALI-R | last post by:
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server. I am trying to call that webservice from a...
0
by: David Davis | last post by:
I am setting up some collaboration software called eProject for a client. eProject is a web based asp application. During setup, the instructions called for registering a service called...
0
by: jocbor | last post by:
Hi! We are calling a webservice in a third party application for integration purposes. The scenario is that messages arrive on msmq. We have a windows service (using a domain account)...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.