By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,353 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,353 IT Pros & Developers. It's quick & easy.

Retrieve non-webform client identity information for Web Services

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.