Identify server that made call to web service

Posted by sleepybobos on Stack Overflow See other posts from Stack Overflow or by sleepybobos
Published on 2010-04-05T23:50:50Z Indexed on 2010/04/05 23:53 UTC
Read the original article Hit count: 263

Filed under:
|
|

I am working within an intranet environment. We have both a production and development sharepoint server (WSS 3).

We have a 3rd party workflow product which runs on top of sharepoint. It is installed on both the production and development sharepoint servers. The workflow product can call web services I have written which are hosted on our web server.

How would I have the web services determine which sharepoint server made the call to the web service, be it the production or development server?

I would then use this information to server specific information from web.config or database etc.

Currently the site hosting web services is setup to allow anonymous access so code such as

System.Web.HttpContext.Current.User.Identity.Name;

returns and empty string. If windows authenticaion is used it returns the identity of the currently logged in user, which is no user in identifying the server the call was made from.

I need a push in the right direction to address what I believe is probably a common scenario please.

© Stack Overflow or respective owner

Related posts about web

Related posts about Services