1. Alfredo Guillot
  2. PowerBuilder
  3. Thursday, 28 December 2023 13:18 PM UTC

Hello! 

We need to ask for your help. We want to include a Button in a Power Builder application that can allow users to upload files, for wich we are trying to execute 3 functions from the object AppeonFileService from the Workaround library.

The functions are:

of_logonfileserver()

of_appeonupload()

of_logoffileserver()

 

We completed the Deploying Appeon File Server to IIS, and now we are trying to execute the first function (of_logonfileserver()) using the example Script that you suggest in the APPEON ONLINE HELP CENTER, the Script is the following:

long ll_re
string info

ll_re = fileservice.of_logonfileserver ("192.168.168.52", 80, "username=userA;password=userA") 

if ll_re = 0 then
 info = "Logon to file server is successful."
elseif  ll_re = 1 then
 info = "Failed to connect to the file server."
else
 info = "Failed to connect to the file server."
end if

Messagebox( "ll_re="+string(ll_re),info)

Then, when we try to execute it (after changing the IP address), the value ll_re is always 1 (Failed connection). Looking on the internet, we found a response from you to a similar problem suggesting to try on IE the following URL: 

http://192.168.168.18:80/fileservice/fileservice.aspx

We use instead of the IP the root of the project and obtained the next error message:

Appeon.FileService.Util.ParseException: No se puede leer más allá del final de la secuencia. en Appeon.FileService.Parser.parse(Stream inStream) en Appeon.FileService.FileServiceExecutor.execute(HttpContext Context)

 

And this is what we would like to ask you if you know what can be causing the problem or if there is something that we are not doing that generates the error or anything else that you can tells us that could help so we can connect to server so we can continue with the other 2 functions.

 

Please let us know if there is any aditional information that we can provide.

Regards, Constanza.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 20:03 PM UTC
  2. PowerBuilder
  3. # 1

Hi Alfredo;

   Ahhh ... That's the 1st GA release of PB 2022. That PB version also came with PowerServer 2022 as well (as a matched pair). The WorkArounds library is not valid for that PB/PS version. Also, PB 2022 can not be used with the old PS 2020 release either.

 So you'll need to ...

  • Return to using PB 2019 R3 if you want to use the FTP feature with PS 2020.  // Or
  • Remove the WorkArounds library altogether & move up to PS 2022. Then look around for another FTP solution like Armeen suggested.

Regards... Chris 

Comment
There are no comments made yet.
Alfredo Guillot Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 16:51 PM UTC
  2. PowerBuilder
  3. # 2

Hello Chris,

I detail the Version and Build below and also send it as an attachment (I send a screenshot taken from PB):

 

Version 2022

Build 1900

 

Please let us know what can we do. Thank you.

Regards.

Attachments (1)
Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 28 December 2023 18:22 PM UTC
The Appeon Workaround PBL is for PowerServer 2020 and older. This library has been discontinued in newer versions because we are now doing the functionality of PowerServer natively as PowerScript instead of converting to JavaScript. If you want to FTP files to a server from PB I would suggest looking at a third-party library, such as https://www.chilkatsoft.com/
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 December 2023 14:42 PM UTC
  2. PowerBuilder
  3. # 3

Hi Alfredo;

  This looks like your trying to use an old & now deprecated Appeon Web product. What version & build are you using?

Regards ... Chris 

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.