get the calling url inside a web service

cgedney

New member
Joined
Sep 16, 2009
Messages
3
Programming Experience
10+
I have a web service that pulls information out of active directory. I have several websites that consume the web service. One of these websites is causing the active directory user id to lock up. My question is: how can I get the url or name of the calling website within the web service?
 
Have a look into Context.Request... UserHostAddress perhaps.
 
Context.Request.UserHostAddress

Good suggestion, but I am calling the webservice internally from an internal website. This causes Context.Request.UserHostAddress and UserHostName to come back as a loopback.
 
How about the UrlReferrer ?
 
I tried UrlReferrer

I tried it and Url. UrlReferrer was Null and Url contained the path and filename of my web service.
 
Back
Top