【发布时间】:2019-09-19 07:05:23
【问题描述】:
有没有办法可以根据服务客户端名称读取端点地址?
这是我的服务参考名称:
TestServiceReference.TestServiceClient TestClient = new TestServiceReference.TestServiceClient ();
这是我的 web.config 文件
<endpoint address="http://....................../TestService.svc"
behaviorConfiguration="webEndpoint" binding="webHttpBinding"
bindingConfiguration="webHTTPBinding_abc" contract="TestServiceReference.ITestService" />**
喜欢下面的网址
var url = "http://............./TestService.svc";
【问题讨论】: