我知道我可以做類似下面的代碼,以動態創建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」的價值?