1. ATK Gimmy Susan
  2. PowerBuilder
  3. Monday, 27 May 2019 16:21 PM UTC

Hi Chris.

 

My WS can't find the configuration ini file: Webservice.ini.
What do you mean with "Note: must get the PATH correct!". Which path ? It must be the same path of 'Resource files' tab in project ?

The code:
>>ls_ini_file = of_get_ini_file_name ( )
>>lc_language = ProFileString (ls_ini_file, ls_section_service, "Language", 'I')
It has always the default value and not the ini value.
( i write my workspace folder )

 

 

The project, in the 'Resource files' folder, have correctly the INI file.

 

Ty for answer

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 May 2019 23:42 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Gimmy;

   Sorry for the slow reply as it was the Memorial Day holiday here last Monday and I am just getting caught up on the ~100 emails over the past 2 days.

  The INI file will be located under IIS based on the Web Service feature added by Sybase in V11.5. The WS's location for your application and it's INI will be partially based your development's path (as per the Sybase design).

For example: 

Development ... c:\dev\pb2017\Gimmy   (PB IDE Project => MyWebService )

Deployment ...  C:\inetpub\wwwroot\MyWebService_root\file\common\C\Dev\PB2017\Gimmy

   So the key to having the MVC bnased framework locate your INI and copy it to where its running is to know the "sub-path" in the Interface and Controller objects by setting the "is_workspace_path" to where you are developing. In your example, that would be: "c:\dev\pb2017\Gimmy"

    Once the framework knows the sub-path - it will figure out the deployment location of the INI and then copy it to the working folder. Which in your case would be "C:\inetpub\wwwroot\MyWebService_root\file\session\__webservice__\c

 

HTH

Regards ... Chris

Comment
  1. ATK Gimmy Susan
  2. Wednesday, 29 May 2019 06:46 AM UTC
Hi Chris.

Don't worry about the delay.

Thanks for the reply. (This is like the water in the desert of my mind).
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 29 May 2019 19:13 PM UTC
My pleasure Gimmy!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.