How do I connect to WSDL if I have SSL System.Net.WebException
-
Hi, I'm trying to connect to WSDL https://pue.zus.pl:8500/ws/zus.channel.platnikRaportyZla:wsdlPlatnikRaportyZla/zus_channel_platnikRaportyZla_wsdlPlatnikRaportyZla_Port?wsdl using SharpDevelop 5.1.0 build 5216 and NetFramework 4.5. The WSDL is public open and password protected and need to username and password to get an access to method "pobierzRaporty". Here is manual: Manual I have added reference to this wsdl and: using zus_xml; using zus_xml.pue.zus.pl; I have made this code: class Program{ public static void Main(string[] args){ //create an instance to get an access to method pobierzRaporty zus_xml.pue.zus.pl.wsdlPlatnikRaportyZla raport = new zus_xml.pue.zus.pl.wsdlPlatnikRaportyZla(); string opis=""; Raport[] raporty; string data = raport.pobierzRaporty(DateTime.Parse("2020-01-30"), "login", "pass", "123456789", out opis, out raporty); }} But I've got receive error like this: System.Net.WebException: Połączenie podstawowe zostało zakończone: Nie można ustanowić relacji zaufania dla bezpiecznego kanału SSL/TLS. ---> System.Security.Authentication.AuthenticationException: Według procedury walidacji certyfikat zdalny jest nieprawidłowy. I know this is problem with certyficate but when I use SoapUi the problem doesn't exist. I have checked certificate on WSDL website and it is valid. So please help.