0

I'm trying to request SOAP web service in my .NET project. I was able to connect and get the response using the SoapUI. But when I try to request using this as a reference Client to send SOAP request and receive response

I'm getting the The SSL connection could not be established, see inner exception.

enter image description here

The url and action I'm using:

var _url = "https://xx.xxx.xxx.xxx:xxxxx/payment/services/SYNCAPIRequestMgrService";

var _action = "SYNCAPIRequestMgrService";

Trax
  • 341
  • 4
  • 17
  • see: https://www.google.com/search?q=The+SSL+connection+could+not+be+established%2C+see+inner+exception.&oq=The+SSL+connection+could+not+be+established%2C+see+inner+exception.&aqs=chrome..69i57.275123j0j7&sourceid=chrome&ie=UTF-8 –  Aug 06 '21 at 06:12

1 Answers1

0

I was able to get the response after putting this line of code before making the actual request.

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

But this will always trust the SSL certificates and seems insecure.

Trax
  • 341
  • 4
  • 17