For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > April 2006 > The request failed with HTTP status 401: Unauthorized









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author The request failed with HTTP status 401: Unauthorized
Sylvain

2006-04-28, 7:08 pm

Hi,

I have a web service on server A, calling the SPFiles.asmx sharepoint
built-in web service on server B, I'm using the getDocument() method
that returns a byte array.

Using Kerberos and impersonation, my web service passes the user's
credentials to the sharepoint box, and all of this is working fine.
However, some of the time, just out of the blue, I get the following
error:

The request failed with HTTP status 401: Unauthorized.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(...)

If I try it again, it will work fine for another 5 minutes or so.. I
have hardcoded my credentials and it does the same thing, so I know
there is no problem with passing the proper credentials, but I'm
wondering what's going on on the other end.

Has anyone encountered a similar problem?

Thanks a lot,

sylvain.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com