Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43798

Wiki Page: How can I add a client certificate to a Web Service in .Net Explorer?

$
0
0
For Web Services that require client certificates for authentication the client certificates must be defined in Input Data properties by following steps below: 1 Select a Web Service class in Classes view. 2 In the Input Data Properties table, select the ClientCertificates field to enable the "..." button and click on it to display the Client Certificate dialog where certificates can be added/removed. 3 Add a certificate file to the list of certificates by clicking the "+" button. Multiple certificates can be defined. Certificates can be removed by clicking the "-" button. Once client certificates have been added, the ClientCertificates property description is updated with the number of assigned certificates. The following code is generated for the test framework and standalone code: mWebProxy1 = new TestWebProxies.Service1(); mWebProxy1.ClientCertificates.Add(System.Security. Cryptography.X509Certificates.X509Certificate.CreateFromCertFile("C:\\TestX509.cer")); When exporting to a native BDL script, the following comment appears: // You have to add the following certificate(s) to your profile! // C:\TestX509.cer NOTE: There is currently no way of defining a certificate when downloading the WSDL file directly in .Net explorer. Whenever a certificate must be presented it is necessary to download the WSDL file to the local file system and load it from there. The certificate that is defined after the WSDL is loaded is the certificate that is used for actually calling a web service method and must appear in the same format that the developers are using in their application in order to call the web service Old KB# 17932

Viewing all articles
Browse latest Browse all 43798


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>