【发布时间】:2011-02-11 07:54:31
【问题描述】:
如果我有以下情况:
WSHttpBinding binding = new WSHttpBinding();
EndpointAddress endpoint = new EndpointAddress(new Uri("http://xxx:pppp/MyService"));
MyServiceClient client = new MyServiceClient(binding, endpoint);
如何设置端点绑定配置?如果有帮助,我的 app.config 设置为:
<endpoint address="http://xxx:pppp/Design_Time_Addresses/WcfServiceLibrary/ManagementService/"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IManagementService"
contract="ServiceReference.IManagementService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
但是我希望让用户在运行客户端之前进行配置。
谢谢
【问题讨论】:
标签: c# wcf configuration