Question

I need to create a C# 3.0 Web service which is capable to retrieve (only) the userid of the CALLER in an intranet environment. I realise I could possibly pass the information from the caller program but in my case it is not feasible. The Web service is going to be consumed by a Windows app (Infopath 2003 to be precise)..and retrieve the userid from my Windows app is not practical in this circumstances.

Is that achievable? The IIS (hosted in windows 2003 standard server) uses windows authentication. I have tried a few things using WindowsIdentity but it only works for localhost.

Was it helpful?

Solution

Have you tried this? HttpContext.Current.User.Identity.Name

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top