public PAC(string rutaPfx, string clave, Parametros param) { try { _ws = new interfactura.WebService1(); _ws.ClientCertificates.Add(new X509Certificate(rutaPfx, clave)); //_ws.ClientCertificates.Add(new X509Certificate(@"C:\GPUsuario\GPCfdi\feGettyMex\fePAC\tst-0000593\tst-0000593.pfx", clave)); _ws.Url = param.URLwebServPAC; } catch (Exception ti) { throw new System.IO.IOException("Exceptión al cargar el certificado. Verifique la existencia del archivo: " + rutaPfx, ti); } }
public PAC(string rutaPfx, string clave, Parametros param) { try { _ws = new interfactura.WebService1(); _ws.ClientCertificates.Add(new X509Certificate(rutaPfx, clave)); // _ws.ClientCertificates.Add(new X509Certificate(@"C:\GPUsuario\GPExpressCfdi\feMCLNTST\fePac\tst-0000018.cer")); _ws.Url = param.URLwebServPAC; } catch (Exception ti) { numErr++; msjError = "Error en el PAC al preparar el timbrado.[PAC] " + ti.Message; } }