Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do I connect to WSDL if I have SSL System.Net.WebException

How do I connect to WSDL if I have SSL System.Net.WebException

Scheduled Pinned Locked Moved C#
securityhelpquestioncsharpwcf
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14744636
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups