Hi all,
I published a web service of type codeunit, and in this CU I wrote some functions in one function I wrote some code about calling a external API, and I m consuming that web service in my C# code.
But when the "
GetResponse" function going to execute in C/AL I m getting exception in C#, below is the screen shot for error.
below is the screen shot of code, I could use AUTOMATION type variable for this code but in C# it will cause exception of type like dialog open, message box open etc. So I used DotNet var. May be I m wrong with code, please help me out.
Thanks in advance.
Answers
Add the line: ServicePointManager.SecurityProtocol(SecurityProtocol.Tls12);
where to add, in C/AL or in C#. How can I add it in C# because API is calling from NAV code, or if you are talking about adding line in C/AL then what Dot Net var should I use.
Thanks
Bro I m not a C# developer, That's why I post this error here, If you know how to resolve this error then please let me know, Otherwise I don't need your suggestions.