Workstation Gateway Server

Using the Workstation Gateway Server

  1. Start the WSG server - STRTCPSVR SERVER(*WSG)
  2. On your Web browser enter the URL of the WSG Server, use the following form
  3. http://hostname:port/WSG/QAPP0100?exit_information

Where:

http:
The workstation gateway uses the HTTP protocol
hostname
This the system to which the request will go
:5061
This is the default well-known port for the Work Station Gateway function. You must specify this port as your web client will try to connect to port 80 by default if you fail to override this.
/WSG
Means please use the Work Station Gateway function. WSG must be in upper case.
/QAPP0100
This is a prefix that indicates that exit point information follows.
?exit_information
Optional values can be passed to a user-written exit program to do such things as verify user identity or cause a certain 5250 application to be executed.
  1. Why not test the WSG Server? Link to WSG

    URI is /WSG. DSPSGN must be *YES in the WSG attributes for you to get the signon displayed.

    Once you are signed on...you might want to check out a 5250 application that has some added HTML:

    1. CALL SHTMLR
  2. A WSG exit-program can be coded that bypasses logon security and takes you directly to a program to make queries (but not update or delete) the comment database file.

    URI is /WSG/QAPP0100?anonymous. The program ITSOIC400/EXITPGM2 needs to be registered via the WRKREGINF command. The source to the program is in ITSOIC400/QCSRC.EXITPGM2.

  3. And, if the remote user is not smart enough to know our trick about anonymous...they might try some other string...

    The URI is /WSG/QAPP0100?QSECOFR/QSECOFR.

Note to instructor ! You may need to enter the name/address of your WSG Server manually

Agenda

WSG060