WCF Service custom message inspector
问题 I built a WCF Service that uses custom username and password authentication and I am testing it from the client app with the following code: using (ServiceReferenceClient.TestServiceClient tc = new ServiceReferenceClient.TestServiceClient()) { tc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None; tc.ClientCredentials.UserName.UserName = "User1"; tc.ClientCredentials.UserName.Password = "Pwd1"; tc.ServiceMethod(param1, param2,