Consume Web Reference C #

0

I would like some help from you

I added the Service via Web Reference

NFSeBeloHorizonteMG.NfseWSService ws1 = new NFSeBeloHorizonteMG.NfseWSService();

ws1.Url = hostWS;

X509Certificate certificado = cert.BuscaNroSerie(noSerieCert, false);
ws1.ClientCertificates.Add(certificado);
ws1.UseDefaultCredentials = true;

string result = ws1.ConsultarLoteRps(cabecalho, consulta);

When it arrives in QueryLoteRPS it gives the error

Request aborted: Could not create secure channel for SSL / TLS.

I'm having this same problem in other service

is not certified because some service usually works with this certificate

    
asked by anonymous 19.02.2018 / 20:34

0 answers