hi,
is there any dependency between the pbwsclient and the tls protocol version?
is tls1.2 supported ?
hi,
is there any dependency between the pbwsclient and the tls protocol version?
is tls1.2 supported ?
Hi Ayman,
here is a little PowerBuilder 2021 example using pbwsclient and TLS 1.2.
I copied and changed the emitted C# source from the TmpWebService directory, added 1 line of code and compiled the C# source with .NET SDK 4.8.x.
The one line of code I added:
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
in the constructor of the EndpointService class.
hth
Arnd
i can not use either HttpClient or RESTClient as i am consuming the service from .net web service target
What version of PB are you using?
pbwsclient is no longer supported and isn't available in PB 2022. HttpClient or RestClient would be the recommended way to go.
The .NET assembly was compiled using csc.
csc /t:library hellowebserviceproxy.cs
There is a compile_all.cmd in the wsproxies folder.
The C# source in the wsproxies folder is a copy of the emitted files of the PowerBuilder WebService Proxy Project.
... 10 min. later...
But now I used VS 2019 community to setup and configure a VS Studio project.
I startet with "ClassLibrary (.NET Framework) C#" type of project.
No Problems so far.
The DLL is now a bit larger (8kb) because of additionally information for version, company etc.
hth
Arnd