Question: wcf how to set client credentials?
Answer: To specify the client credential value on the client in code On the client class, set the ClientCredentials property of the ClientBase<TChannel> class to an appropriate value. This example sets the property to an X. 509 certificate using the SetCertificate method of the X509CertificateInitiatorClientCredential class.