GetEspUrl

result := STD.File.GetEspUrl ( [ username, userPW ]);

usernameOptional. A STRING containing a username to use for authenticated access to the ESP process. If omitted, it indicates that no user authentication is required.
userPWOptional. A STRING containing the password to use with the user cited in the username argument. If username is empty then this is ignored
Return: GetEspUrl returns a STRING containing the full URL (including HTTP scheme and port) to an ESP server process. If more than one ESP process is defined then the first found process is returned. Returns an empty string if an ESP server process cannot be found in the environment.

The GetEspUrl function returns the full URL to an ESP server process.

Example:

IMPORT STD;
EspAddress := STD.File.GetEspUrl();
EspAddress;