468,554 Members | 1,863 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Retrieve non-webform client identity information for Web Services

Hi,

I have a client (C# MS Excel Project) calling a Web Service to retrieve and
update data. One of the business requirement is the client's NT Login ID, IP
Address and computer name must be log for each web service method call.

To get client information using integrated Windows authentication with
ASP.NET client. You need to disable "Anonymous Access" and enable
"Integrated Windows authentication". IE will automatically pass in the
authetication information to IIS.

Since I am not using IE to call the Web Service, IIS could not retrieve
authentication information. How can I fix that limitation?

Thanks,

John Yung
jo*******@sac.com
Nov 23 '05 #1
1 2235
Hi John,
You have two alternatives to solve that problem.

1. Set the proxy credentials to use Windows Authentication.

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials; // The
current user credentials will be used

2. Configure the Web service to use WSE.
In this case, an UsernameToken should be used to authenticate the user (You
need to enable "Anonymous Access").

Regards,
Pablo Cibraro
www.lagash.com

In that case, maybe the better option is to disable Windows
"John Yung" <jo***@sac.com> wrote in message
news:eC****************@TK2MSFTNGP12.phx.gbl...
Hi,

I have a client (C# MS Excel Project) calling a Web Service to retrieve
and
update data. One of the business requirement is the client's NT Login ID,
IP
Address and computer name must be log for each web service method call.

To get client information using integrated Windows authentication with
ASP.NET client. You need to disable "Anonymous Access" and enable
"Integrated Windows authentication". IE will automatically pass in the
authetication information to IIS.

Since I am not using IE to call the Web Service, IIS could not retrieve
authentication information. How can I fix that limitation?

Thanks,

John Yung
jo*******@sac.com

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by forums_mp | last post: by
16 posts views Thread by Daniel Tonks | last post: by
2 posts views Thread by David Elliott | last post: by
33 posts views Thread by jacob navia | last post: by
3 posts views Thread by Richard Thornley | last post: by
2 posts views Thread by Benoist LUGNIER | last post: by
4 posts views Thread by John Savage | last post: by
6 posts views Thread by Dylan Nicholson | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.