1. ayman ahmad
  2. PowerBuilder
  3. Wednesday, 23 October 2024 12:24 PM UTC

hi,

is there any dependency between the pbwsclient and the tls protocol version?

is tls1.2 supported ?

 

Who is viewing this page
Arnd Schmidt Accepted Answer Pending Moderation
  1. Saturday, 9 November 2024 20:48 PM UTC
  2. PowerBuilder
  3. # 1

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

Attachments (1)
Comment
  1. Arnd Schmidt
  2. Saturday, 9 November 2024 21:40 PM UTC
Which file?

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.
  1. Helpful
  1. ayman ahmad
  2. Wednesday, 13 November 2024 09:12 AM UTC
i mean if i will compile hellowebserviceproxy.cs using visual studio , what would be the project type?
  1. Helpful
  1. Arnd Schmidt
  2. Wednesday, 13 November 2024 15:18 PM UTC
I have never used Visual Studio to compile the code. ..

... 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
  1. Helpful
There are no comments made yet.
ayman ahmad Accepted Answer Pending Moderation
  1. Tuesday, 5 November 2024 16:02 PM UTC
  2. PowerBuilder
  3. # 2

i can not use either HttpClient or RESTClient as i am consuming the service from .net web service target

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 8 November 2024 02:18 AM UTC
Oh I see. Then misunderstanding is me hahaha

OK, sorry you cannot do that, and those legacy targets are discontinued in newer versions.
  1. Helpful
  1. ayman ahmad
  2. Friday, 8 November 2024 12:05 PM UTC
no problem , but can you answer my original question :)

regards

  1. Helpful
  1. Armeen Mazda @Appeon
  2. Saturday, 9 November 2024 01:30 AM UTC
Oh sorry, I thought I answered. The legacy web service clients in PB do NOT support TLS 1.2. So that's why I was trying to encourage you to use HTTPClient, which supports up to TLS 1.3.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 23 October 2024 14:29 PM UTC
  2. PowerBuilder
  3. # 3

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.

Comment
  1. ayman ahmad
  2. Sunday, 27 October 2024 07:03 AM UTC
i am using soapconnection in the pbwsclient.pbx
  1. Helpful
  1. Roland Smith
  2. Monday, 28 October 2024 15:25 PM UTC
SOAP sends the data in XML format. Once you have figured out what the expected XML is, you should be able to switch to HttpClient or RESTClient objects without too much trouble.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.