12,162
社区成员
发帖
与我相关
我的任务
分享
FRS.CxfServiceClient server = new FRS.CxfServiceClient();
server.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None;
server.ClientCredentials.UserName.UserName = "frs";
server.ClientCredentials.UserName.Password = "frs";
Object objectresult= server.wsdl(10, "2014-06-01 00:00:00");
<basicHttpBinding>
<binding name=”usernameHttps”>
<security mode=”TransportWithMessageCredential”>
<message clientCredentialType=”UserName”/>
</security>
</binding>
</basicHttpBinding>