1. Roland Smith
  2. PowerBuilder
  3. Monday, 11 April 2022 15:30 PM UTC

Currently our app makes web calls using the Windows OLE object "WinHttp.WinHttpRequest.5.1".

I am looking into possible changing to HttpClient.

We are using the SetClientCertificate method which I don't see in PowerBuilder HttpClient. RestClient doesn't have it either.

Is there a way to accomplish this with the HttpClient object?

https://docs.microsoft.com/en-us/windows/win32/winhttp/iwinhttprequest-setclientcertificate

 

Kevin Ridley Accepted Answer Pending Moderation
  1. Friday, 15 April 2022 18:01 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland,

 Does this REST API offer Oauth also?  That may be a way around authenticating without using a certificate.  I've got a lot of experience working with REST APIs using Oath.  Lmk if you want to discuss.

 

KR

Comment
  1. Roland Smith
  2. Monday, 18 April 2022 13:00 PM UTC
The web api is by another department in the company so I can ask.

The problem turned out to be due to the payload being too large. It is in XML format. I suggested to them to allow for JSON which is much smaller. It is also transmitting all data every time rather than just what changed. The other department has control of the web api and the window in the desktop app that sends the data so it is up to them to fix.
  1. Helpful
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 April 2022 03:23 AM UTC
  2. PowerBuilder
  3. # 2

Hi Roland,

 

Thanks for reporting this problem.

Sorry to let you know that currently, HTTPClient and RESTClient don't support this feature.

However, the upcoming PB 2022 Beta will support it with the new SetClientCert method.

We will notify you when it is available so that you can try it out in advance.

 

Regards,

Comment
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.