public PidService(string wsUrl)
        {
            _client = new pidwsdocPortClient("pidwsdocPort", new EndpointAddress(wsUrl));

            // The following line makes it possible to read the VOCES certificate used for calling the PID/CPR service, as a file on the filesystem instead of the certificate store (CAPI).
            // Remove the following line if you plan on using the certificate store instead.
            _client.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2(ConfigurationManager.AppSettings["pfxFile"], ConfigurationManager.AppSettings["pfxPassword"]);
        }
Example #2
0
        public PidService(string wsUrl)
        {
            _client = new pidwsdocPortClient("pidwsdocPort", new EndpointAddress(wsUrl));

            // The following line makes it possible to read the VOCES certificate used for calling the PID/CPR service, as a file on the filesystem instead of the certificate store (CAPI).
            // Remove the following line if you plan on using the certificate store instead.
            _client.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2(ConfigurationManager.AppSettings["pfxFile"], ConfigurationManager.AppSettings["pfxPassword"]);
        }