예제 #1
0
        public bool SaveIssuer(string issuer, byte[] certificate, byte[] privateKey, string password)
        {
            using (var ws = new TimbradoSoapClient(binding, address)) {
                var response = ws.RegistraEmisor(Username, issuer, Convert.ToBase64String(certificate),
                                                 Convert.ToBase64String(privateKey), password);
                string err_number      = response[1].ToString();
                string err_description = response[2].ToString();

                if (err_number != "0")
                {
                    throw new ProFactClientException(err_number, err_description);
                }
            }

            return(true);
        }
예제 #2
0
        public bool SaveIssuer(string issuer, byte[] certificate, byte[] privateKey, string password)
        {
            using (var ws = new TimbradoSoapClient (binding, address)) {
                var response = ws.RegistraEmisor (Username, issuer, Convert.ToBase64String (certificate),
                                                  Convert.ToBase64String (privateKey), password);
                string err_number = response [1].ToString ();
                string err_description = response [2].ToString ();

                if (err_number != "0") {
                    throw new ProFactClientException (err_number, err_description);
                }
            }

            return true;
        }