【发布时间】:2014-03-03 17:32:21
【问题描述】:
我创建了一个 WCF 服务,在 app.config 中具有适当的服务器和客户端配置设置。在特定设置中,客户端将需要同一端点的两个不同地址。使用哪个地址在应用程序内动态确定,并按名称选择正确的端点。但是,我想知道是否可以向这些端点添加名称空间和前缀,以便客户端配置为:
<local:endpoint address="http://my.local.address:8005/MFSRemoteDataService" behaviorConfiguration="UnsecureEndpointBehavior" binding="wsHttpBinding" bindingConfiguration="UnsecureHttpBinding" name="MFSRemoteDataServiceEndpoint" contract="MFSRemoteDataService.IMFSRemoteDataService" />
【问题讨论】: