1. Yasir Masood
  2. PowerBuilder
  3. Tuesday, 2 July 2019 00:56 AM UTC

Hello,

We are trying to us an in house Web Service in our PB application. The WS works in PB IDE, but when we installed

it on our Citrix and TS-Plus environment, i am getting the following error,

"Unresolvable external httpclient when linking reference at line....."

I am using PB 2017 R3 with SQL Server 2008. Here is the code that I have,

string        ls_url
string        ls_pic_id

httpclient    http
integer    li_rc

Blob lblb_photo, lblb_NextData

ls_url = 'https://companyname-staging.azurewebsites.net/api/file/v1/FileDownload/Public/'
ls_pic_id = this.GetItemString(row,"pic_id")

ls_url = ls_url + ls_pic_id

http = create httpclient
li_rc = http.ClearRequestHeaders ( )
http.AutoReadData = false

li_rc = http.setrequestheader('X-API_KEY','266E5EE3-E447')
li_rc=0
li_rc = http.sendrequest( 'GET', ls_url)

//string    ls_text
//long    ll_code
//
//ls_text = http.getresponsestatustext()
//ll_code = http.GetResponseStatusCode()
//MessageBox('',ls_text)
//MessageBox('',string(ll_code))

if li_rc = 1  and http.GetResponseStatusCode() = 200 then

    do while true
      li_rc = http.ReadData(lblb_NextData, 1024*16)
      if li_rc = 0 then exit // Finish receiving data
      if li_rc = -1 then exit // Error occurred
      lblb_photo += lblb_NextData
    loop
else
    MessageBox('Error','Unable to view th picture at this time.')
    Return
end if

p_image.show()
//p_image.originalsize=true
p_image.setpicture(lblb_photo)

I would appreciate your help.

Thanks

 

 

Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 3 July 2019 15:14 PM UTC
  2. PowerBuilder
  3. # 1

Checkout this to see if it solves your problem:
https://community.appeon.com/index.php/qna/q-a/unresolvable-external-httpclient-when-linking-reference

Comment
  1. Yasir Masood
  2. Wednesday, 3 July 2019 15:26 PM UTC
I have copied the PB 2017 DLL in my directory but still getting the same error.



Can i get a list of the PB 2017 DLL's?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 3 July 2019 17:40 PM UTC
Hi Yassir;

Open the PB Help and do a Search for the key work "deployment". Then select the "Deployment Techniques" link. That should take you to the "PB Runtime Files" link - which will be a comprehensive list of all the PB "run-time" files that have deploy (by feature) for your PB App.

HTH

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.