【发布时间】:2009-02-19 17:55:06
【问题描述】:
我知道我可以执行以下代码来在 WCF 中动态创建客户端端点连接:
BasicHttpBinding basic =
new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
basic.Security.Transport.ClientCredentialType =
HttpClientCredentialType.Ntlm;
EndpointAddress serviceAddress =
new EndpointAddress("http://whatever/service.svc");
YourServiceClient m_client = new YourServiceClient(basic, serviceAddress);
问题是,在这种情况下,我需要知道“YourServiceClient”是什么。我想要做的是从数据库中获取类型“YourServiceClient”,并将其存储为对象。有谁知道我会怎么做这样的事情?我从数据库中检索到的对象中的“YourServiceClient”值在哪里?
【问题讨论】: