Did you set the Credentials property of your web service proxy to
DefaultCredentials? I assume you did this, but your code didn't show it, so
thought I'd ask.
If you did that and it still fails, then the next thing to do would be to
examine the security event log on the remote server you are contacting and
find out what happened with the authentication. You would want to make sure
they have auditing enabled for logon events (success and failure) so you can
see what credentials it attempted to use when you logged in.
This also assumes that there is some sort of a trust relationship between
the user executing the local code and the remote server (same domain, etc.).
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<ri*************@raymondjames.comwrote in message
news:d7**********************************@c58g2000 hsc.googlegroups.com...
On Jun 18, 12:57 pm, "Joe Kaplan"
<joseph.e.kap...@removethis.accenture.comwrote:
Why do you say this does not work?
-----------------------
Because when I execute:
sendmailproxy.SendEmailRequest(sendmail);
I get:
System.Net.WebException from System.Web.Services
The request failed with HTTP status 401: Unauthorized.
Remember, this web service that I am using is a produced locally at
the company where I work, and I have access to their developers. Is
there some [web attribute] or something on their end that they need to
enable or disable?
Thanks