Posted on: 5/29/2014 4:34:54 PM | Views : 457

I have defined a web client for an external web SOAP service secured by a certificate and user name and password.
I want to use the following code to instantiate the web client and set the credential for the client.
            ws1 = New CDPHService.CDPH_transferPortTypeClient(contractName, EndPoint)
        Try
            ws1.ClientCredentials.ClientCertificate.SetCertificate( _                 System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser, _                 System.Security.Cryptography.X509Certificates.StoreName.My, _                 System.Security.Cryptography.X509Certificates.X509FindType.FindByApplicationPolicy, _                 & ...

Go to the complete details ...