Método CargaCertificado()

El request del método es el siguiente:

Request: Parámetro a enviar
Tipo Identificador Descripción
String Password Proporcionado por The Factory HKA.
String RUC Proporcionado por el cliente.
String Usuario Proporcionado por The Factory HKA.
String Certificado Proporcionado por The Factory HKA.
String Clave Certificado Proporcionado por The Factory HKA.

XML EJEMPLO
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:wsec="http://schemas.datacontract.org/2004/07/WSEcuadorService.Request">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:CargaCertificado>
         <!--Optional:-->
         <tem:data>
            <!--Optional:-->
            <wsec:Clave>?</wsec:Clave>
            <!--Optional:-->
            <wsec:RUC>?</wsec:RUC>
            <!--Optional:-->
            <wsec:Usuario>?</wsec:Usuario>
            <!--Optional:-->
            <wsec:Certificado>?</wsec:Certificado>
            <!--Optional:-->
            <wsec:ClaveCertificado>?</wsec:ClaveCertificado>
            <!--Optional:-->
            <wsec:Extension>?</wsec:Extension>
         </tem:data>
      </tem:CargaCertificado>
   </soapenv:Body>
</soapenv:Envelope>

Proceso para consumo CargaCertificado

Codigo Ejemplo .NET
         try
         {
                ServiceClient serv = new ServiceClient();
                PeticionCargaCertificado pet = new PeticionCargaCertificado();
                pet.RUC = textBox2.Text;
                pet.Usuario = textBox3.Text;
                pet.Clave = textBox4.Text;
                string ext = textBox1.Text;
 
                if (ext.Contains(".p12"))
                {
                    pet.Extension = "p12";
                }
                if (ext.Contains(".pfx"))
                {
                    pet.Extension = "pfx";
                }
 
                byte[] a = File.ReadAllBytes(textBox1.Text);  //convertimos el certificado en base64
                string CertConv = Convert.ToBase64String(a);
                byte[] b = Encoding.ASCII.GetBytes(textBox5.Text);
                pet.Certificado = CertConv;
                pet.ClaveCertificado = Convert.ToBase64String(b);
 
                var resp = serv.CargaCertificado(pet);
 
                richTextBox1.Text = "Código: " + resp.Codigo + "\r\n" + "Mensaje: " + "\r\n" + resp.Mensaje + "\r\n" + resp.FechaVigenciaInicio + "\r\n" + resp.FechaVigenciaFin + "\r\n" + resp.RUC;
            }
            catch (Exception ex)
            {
 
                MessageBox.Show("Mensaje error: " + ex);
            }

El campo “Certificado” Y “ClaveCertificado” deben ser expresados en Base64