thilakasiri1978
11 years agoOccasional Contributor
VB Error "The client certificate is not provided. Specify a client certificate in client credentials"
Hi,
When I try to call the web service I'm getting the below vb error.
Error: ' the client certificate is not provided. Specify a client certificate in client credentials'
But in my local machine I have install the relevant client certificate ("tempClientCert"). I have use the below code and appreciate your response.
Code :
Set MyWebService = WebServices.WebService_Fee
Set Crd = MyWebService.Credentials
' Obtain the client certificate object
Set Certificate = Crd.ClientCertificate
' Defines the client certificate
Call Certificate.SetCertificateEx(slLocalMachine, snMy, ftFindBySubjectName, "tempClientCert")
set ResMail = MyWebService.GetCustomerSavings(1,"55")
When I try to call the web service I'm getting the below vb error.
Error: ' the client certificate is not provided. Specify a client certificate in client credentials'
But in my local machine I have install the relevant client certificate ("tempClientCert"). I have use the below code and appreciate your response.
Code :
Set MyWebService = WebServices.WebService_Fee
Set Crd = MyWebService.Credentials
' Obtain the client certificate object
Set Certificate = Crd.ClientCertificate
' Defines the client certificate
Call Certificate.SetCertificateEx(slLocalMachine, snMy, ftFindBySubjectName, "tempClientCert")
set ResMail = MyWebService.GetCustomerSavings(1,"55")