1. Douglas Holt
  2. PowerBuilder
  3. Friday, 18 May 2018 21:16 PM UTC

I am refactoring a web service written in PowerBuilder .net back to regular PowerBuilder, and have run into a stumbling block. In the PB .net web service, I would access database IDs and passwords stored in an INI file outside of the IIS wwwroot folder. Apparently that is not doable in a regular PowerBuilder web service. Is there another approach for storing and accessing such sensitive information?

Thanks,

Doug Holt

Andres Slachevsky Accepted Answer Pending Moderation
  1. Tuesday, 22 May 2018 12:30 PM UTC
  2. PowerBuilder
  3. # 1

other way is to edit the web.config file and then use the 

GetConfigSettings() to read it

for example

 

String ls_key, ls_value
#IF DEFINED PBWEBSERVICE THEN
    ls_key = 'database'   
    ls_value = GetConfigSettings(ls_key)   
#END IF
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 19 May 2018 01:13 AM UTC
  2. PowerBuilder
  3. # 2

Hi Doug;

     Yes you can access INI and other files deployed in a PB2017R2 Web service!

Have a look at my Web Service Framework. A good simple example of an INI being read by a Web Service is in the framework's OrderEntry example App.

HTH

Regards ... Chris

 

Comment
  1. Douglas Holt
  2. Sunday, 20 May 2018 20:34 PM UTC
Thanks Chris!

  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 22 May 2018 13:33 PM UTC
You are very welcome Doug!

  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.