Web API URL enhancements – PB Docs 2022

Web API URL enhancements

You can specify the Web API URL in the following ways:

  1. Each client app now will contain an apprun.json configuration file. This
    file tells the client app where to download the launcher and
    runtime and where to connect with the Web APIs.

    The launcher URL and the runtime URL can be a short address
    (without including the site URL) or a complete URL address
    (including the site URL).

    The Web API URL must be a complete URL address. If the Web
    APIs is published to the web root directly, then the site URL is
    used as the Web API URL. If the Web APIs is placed into a
    sub-folder and the sub-folder is converted to an IIS sub-app, then
    the Web API URL must include sub-folder name.

  2. The Web API URL can be set via the PowerBuilder SetPowerServerURL function at application
    runtime.

    After you set the URL (via SetPowerServerURL),
    you must manually create the session (via BeginSession).
    And after the session is created, the URL cannot be changed any
    more via SetPowerServerURL until
    the session is ended.

    Note: for BeginSession to take effect, you must select the
    “Dynamic session parameters” option in the Application Properties
    | PowerServer tab.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x