failed with this message: The request was aborted: Could not create SSL/TLS secure channel. SOAP API

Neha4coolsNeha4cools Member Posts: 2
I am getting below error and i am not expert in SOAP API integration.
hnrueholi42k.png

Below code was working fine but suddenly i have start getting the above error, to solve this issue i have used the below code also
ServicePointManager.SecurityProtocol := SecurityProtocolType.Tls12; but no luck.


usi55t3ic8vo.png
i am getting error on the this line of code
Str := lgResponse.GetResponseStream();
On the endpoint 1.2 is enabled i don't know what to do now, Any help is highly appreciated

Answers

  • Developer101Developer101 Member Posts: 528
    in the streamwriter try different UTF8, UTF16 or UTF32. See what works.
    United Kingdom
  • JaskaJaska Member Posts: 5
    edited 2023-05-29
    If this was working before, better check possible security protocol changes in the web service deployment, the supported TLS versions for instance.

    And I usually avoid .NET Assemblies inside of CAL or AL, terrible environments for .NET related trouble shooting and debugging. I go for PowerShell with native .NET support these days and hook it up with whatever the third party might have to offer and I never look back when it comes to this kind of integration work.
Sign In or Register to comment.