1. Joseph Neville
  2. PowerBuilder
  3. Wednesday, 17 October 2018 20:52 PM UTC

I wrote a function to call a SOAP web service using the httpclient object using TLS 1.2. This works just fine on my computer, but when I deploy the application to another computer (which does not have PowerBuilder 2017 installed), an exception is thrown with the message "Unresolvable external httpclient when linking reference at line 50 in function of_call_web_service of object n_cst_webservice." The lines around the error are:

ls_xml_request = ls_xml_request + ""
lo_client = Create httpClient
lo_client.SecureProtocol = SECURE_PROTOCOL_TLS12

line 50 is the lo_client = Create httpClient line.

 

Any idea what is causing the error on computers that do not have PowerBuilder 2017 installed, but not on computers with it installed?

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 October 2018 20:56 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Joseph;

   You also need to deploy the full PB2017R3 "run-time" DLL's. Have a look at the PB Help file under the search key "Deployment". Also have a look at the PB Package Utility.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Joseph Neville Accepted Answer Pending Moderation
  1. Wednesday, 17 October 2018 21:18 PM UTC
  2. PowerBuilder
  3. # 1

That was exactly what I needed. It turns out when I migrated to PB2017 R2 from 12.1, I still had the installer generated by an earlier version of PB2017 package utility and deployed older runtime DLLs to my users' PCs. Thank you for the quick reply!

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 17 October 2018 21:33 PM UTC
Excellent news Joseph ... I am glad that you resolved your run-time issue! :-)
  1. Helpful
  1. Joseph Neville
  2. Thursday, 18 October 2018 23:23 PM UTC
By any chance, is there any way to piecemeal the runtime DLLs? I need pbhttpclient170.dll, but when I used the package utility to deploy the R2 runtime libraries, it revealed a bug in my application that did not exist before. Running the installer I had from the older runtime DLLs, removing the previous install, and installing the older DLLs resolved the bug, but of course, now httpclient doesn't work.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 19 October 2018 13:09 PM UTC
Hi Joseph;

No, that is very dangerous thing to do for any PB App's stability. The PB run-time DLL's are like a set of tires on your car for example ... never "mix & match" (type, manufacturer, etc) as it can lead to handling instability.

Regards ... Chris
  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.