来自webservice的客户端可执行路径

时间:2016-02-19 12:54:43

标签: web-services

我有一个网络服务,我的Windows应用程序使用它作为"服务参考"

我的程序有超过1500个客户端和所有客户端调用相同的exe文件(例如 \\ myserver \ c $ \ myapp \ myapp.exe

我想在我的webservice函数中添加一个控件来检查客户端可执行路径,并且当可执行路径不同于 \\ myserver \ c $ \ myapp \ myapp.exe <时,我阻止调用函数/ p>

也许

<WebMethod()> _
Public Function DoSomething() as string
   if GetClientExePath <> "\\myserver\c$\myapp\myapp.exe" then 
      return nothing
   else
      return "helloooooo"
   endif

end function

public function GetClientExePath()
    return clientexepath
end Function

我可以获得客户端IP地址。但正如我所说,我们有超过1500个客户,我无法存储他们的IP地址。

非常感谢。

0 个答案:

没有答案
相关问题