1. Cecilia Jiménez Bedoya
  2. PowerBuilder
  3. Wednesday, 20 February 2019 14:20 PM UTC

Hello!!

I´ve got another question. Now I  have a webservice to write a file in a server folder. To that folder I have given full control permissions to the IUSR and IIS_IUSRS users as well as to the users PBDotnet4AppPool and DefaultAppPool.

Even so, FileOpen returns -1. In the only folder where you can write files is C:\inetpub\wwwroot\appname_root\file\session\ __ webservice__.

How can I put the files in another site on the server?

Other question really HttpClient is unsuported in powerserver?? How I consume rest webservice???

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 February 2019 20:20 PM UTC
  2. PowerBuilder
  3. # 1

Hi Cecilia;

  Yes, a PB built Web Service can access other folders both under and outside IIS. However, the way Sybase  implemented the .Net WS way back in PB 11.x/12.x - IIS will not allow you to do that. I found a sneaky way (way back when) was to call the O/S's PowerShell feature to read, copy, write files to and from any location on the IIS Server. That trick then empowered my WS's to process external files (in/out) of the WS's "work area".

  You can see an example in my PDF web service that once it builds the PDF on the IIS Server side, it then copies the PDF file result (via PowerShell) onto an external landing pad folder where any App can download it.

FYI:  https://sourceforge.net/projects/stdfndclass/files/Applications/WebService/PDF/

HTH

Regards ... Chris

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 February 2019 18:36 PM UTC
  2. PowerBuilder
  3. # 2

PowerServer 2019 supports calling REST Web services and it has been released.  If you are a PowerServer customer with active maintenance support plan then you can get free upgrade.  Please contact your sales person to get the free upgrade.

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.