To display WebClient's AppServer authentication dialog, use the _getAppServerAuthentication.p procedure, which has the following signature:
DEFINE INPUT PARAMETER prompt AS CHARACTER.
DEFINE INPUT PARAMETER enable-persistent-checkbox AS LOGICAL.
DEFINE INPUT-OUTPUT PARAMETER appserver_userid AS CHARACTER.
DEFINE INPUT-OUTPUT PARAMETER appserver_password AS CHARACTER.
DEFINE INPUT-OUTPUT PARAMETER appserver_info AS CHARACTER.
DEFINE INPUT-OUTPUT PARAMETER persistent AS LOGICAL.
DEFINE OUTPUT PARAMETER choseOK AS LOGICAL.
Use the _getAppServerAuthentication.p procedure if the codebase and business logic reside on the same AppServer, or if they share the same authorization information and authentication is required:
Only at the AppServer and not at the AIA Web server (or you are not using AIA)
Or:
At AIA and at the AppServer, but AIA authorization information is set in the security cache and thus available in CODEBASE-LOCATOR:URL-USERID and CODEBASE-LOCATOR:URL-PASSWORD
Note: In this case, you might instead call _getAIAandAppServerAuthentication.p, passing in the known values and allowing the end user to fill in the missing values.
To invoke the _getAppServerAuthentication.p procedure, call it with a partially qualified pathname that starts with the wcadd directory, as in the following code fragment:
RUN wcadd/_getAppServerAuthentication.p (parameter-list).