Versions des environnements
Network:
Windows 2008 Server
Hello sirs,
i have a c# application that communicate with webservice SOAP SSL(Digital Certificate Authentication), the first interaction all right, create security channel and befall XML change, however into second interaction occur:
System.Net.WebException:"The request was aborted: Could not create SSL/TLS secure channel" em System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) em System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) em System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) em NfseWSService.ConsultarSituacaoLoteRps(String nfseCabecMsg, String nfseDadosMsg)
Source code:
public string InvokeStr(object Instance, string methodName, object[] parameters)
{
//Relacionar o certificado digital que será utilizado no serviço que será consumido do webservice
Type tipoInstance = Instance.GetType();
object oClientCertificates = tipoInstance.InvokeMember("ClientCertificates", System.Reflection.BindingFlags.GetProperty, null, Instance, new Object[] { });
Type tipoClientCertificates = oClientCertificates.GetType();
tipoClientCertificates.InvokeMember("Add", System.Reflection.BindingFlags.InvokeMethod, null, oClientCertificates, new Object[] { this.oCertificado });
//Invocar método do serviço
(*******) ERROR LINE SHOWED
return (string)tipoInstance.GetMethod(methodName).Invoke(Instance, parameters);
}
P.S:
The message occur for four or more attempts, after make. With access successive the time enlarge arriving 44 attempts.
My environment:
Windows 7 Professional (64 Bits)
Visual Studio 2013 (Express 2013 for Windows Desktop)
Valid certificate and installed.
Network Proxy all right.
Somebody went by something similar?
Thanks.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement