如何找到谁在提供我的WEB服务? [英] how to find who is reffering my WEB Service ?
本文介绍了如何找到谁在提供我的WEB服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我创建了一个Web服务,它将安装在一个位置的服务器中。在不同位置有许多客户端系统将其用作Web引用。
如何找到谁(我的意思是,我需要获取引用URL)请求即将发送到我的网站服务..?
Request.Urireferer无法正常工作..我正在使用visual studio.net框架工作V2
任何帮助将被评估。
谢谢
Hello,
I have created a web service which will be installed in a server in one location. There are many client systems in different location who is using it as a web reference.
How to find from whom( I mean , I need to get the refferer URL ) a request is coming to my web service..?
Request.Urireferer is not working.. I am using visual studio.net frame work V2
any help will be appriciated.
Thanks
推荐答案
Dim ipAddress As String = HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ipAddress Is Nothing Or ipAddress = "" Then
ipAddress = HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
End If
为我工作...
working for me...
我没有尝试以下解决方案,但你绝对可以试试这个
解决方案:
Dim webServicesClientProtocol1 As WebServicesClientProtocol
Dim returnValue As String
returnValue = webServicesClientProtocol1.Url
Dim sampleValue As String
webServicesClientProtocol1.Url = sampleValue
如果您在上述解决方案中没有成功,请告诉我
I haven''t try the following solution from my end but u can definitely try this
Solution :
Dim webServicesClientProtocol1 As WebServicesClientProtocol
Dim returnValue As String
returnValue = webServicesClientProtocol1.Url
Dim sampleValue As String
webServicesClientProtocol1.Url = sampleValue
Please let me know if you not get succeeded in the above solution
这篇关于如何找到谁在提供我的WEB服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文