unable to download wsdl file
Tried many times but this error still occurs, then I search in google, and last thing I found is this site: http://debugguru.blogspot.com/2008/06/unable-to-download-wsdl-file-while.htmland indeed it solved the problem, wkwkwk.. Just close the solutions, and reopen, I tried to add web reference again, it works, lol.
But apparently I don't use the web reference. I try to connect to wsdl using Service Reference.
I try to connect, but this error occurs:
Could not establish trust relationship for the SSL/TLS secure channel with authority 'xx.xx.x.xx'.
I search over the net then I found this code:using System.Net.Security;
using System.Security.Cryptography.
public class TestUtils
{
public static void OverrideCertificateValidation(
{
ServicePointManager.
}
private static bool RemoteCertValidate(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyE
{
return true;
}
}
Hope it will be useful for you :)
-julie-
0 comments:
Post a Comment