none
我在WCF开发中有个类的命名空间不知道,GetIdentityClient这个是哪个命名空间呢? RRS feed

  • 问题

  • BasicHttpBinding myBinding = new BasicHttpBinding();   myBinding.Security.Mode = BasicHttpSecurityMode.Message;   myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.Certificate;   EndpointAddress ea = new EndpointAddress("http://win2008:8056/WCFService/GetIdentity");   GetIdentityClient gc = new GetIdentityClient(myBinding, ea);//这个类是哪个命名空间下的?    gc.ClientCredentials.ClientCertificate.SetCertificate("CN=TestClient",     StoreLocation.CurrentUser, StoreName.My);   //指定服务端证书   gc.ClientCredentials.ServiceCertificate.SetDefaultCertificate("CN=win2008",         StoreLocation.LocalMachine, StoreName.My);     gc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode =     System.ServiceModel.Security.X509CertificateValidationMode.None;   //执行代理类Get方法   string result = gc.Get(WindowsIdentity.GetCurrent().Name);
    2011年1月21日 3:41

答案

全部回复