Online documentation - Websydian v6.0 |
Users Guide | Patterns Reference | WebsydianExpress | Search |
This white paper describes the basic steps to deploy a CWA Websydian application on the iSeries
platform using either IBM HTTP Server or Apache HTTP
Server.
Basic knowledge about the iSeries platform is required in
order to successfully complete this
white paper.
Prerequisites:
Make sure the latest cumulative PTF has been installed as well as the latest group PTF for the HTTP Server. Contact IBM support for further information.
Copy the Document Templates to an iSeries folder in the IFS, e.g. /WEBTUTOR.
For Websydian 2.5 and prior you need to create this folder in the HFS, e.g. /QDLS/WEBTUTOR.
QTEMP
WEBTUTOR
WSYD600PTF
WSYD600
PLEX500
QGPL
If needed change the user profile for the
job description. Default is YOBSYDIAN.
- If using the HFS to store the folders, the user profile used in the job description must be created in the directory entry so the Websydian application has access to the templates in the folder system. Use the command DSPDIRE to verify this.
- The user has authority to use the folder where the templates reside.
- The user has authority to use the library where the Websydian applications resides including the WSYDxxx library.
- The user has authority to use the databases used by the Websydian application.
- Make sure the user profile QTMHHTP1 has at least *USE authority to programs, and any files referenced by the Websydian application.
- Make sure the user profile QTMHHTP1 is not disabled (*DISABLED). Use the command DSPUSRPRF to verify this.
Remember to include the last slash ('/') in the path specification in the WSYDPATH data area.
The iSeries uses the EBCDIC character set but document templates are stored in ASCII and the web server also sends and receives information from the browser using ASCII (or more correctly ISO-8859-1).
For this reason the Websydian application must be configured with relevant information about the character sets used so the correct character translation can take place.
For document templates
In Websydian 3.0 and later the character set identifier (CCSID) of the document templates should be stored in the data area IFSCCSID. Default is 01252 (Windows Latin-1).
In Websydian 2.5 and prior the character translation of the document templates are handled by the translation table ASCII2E. The default table complies with Windows Latin-1.
For input and output to the Web Server
In Websydian 3.1 the character translation of inbound and outbound URL encoded characters are handled by the data areas CGIICCSID and CGIOCCSID.
In Websydian 3.0x and prior the translation of inbound URL encoded characters are handled by the translation table WLATIN2E. The default supplied table complies with Western Latin-1.
n this white paper we will use the facility of the web server to translate all in and outbound characters and you should make sure the data areas are set to 65535 and if using Websydian 3.0 or prior use a dummy table for the WLATIN2E translation table.
The value 65535 indicates that no translation will be performed by the Websydian application.
For further information on CCSID's see the iSeries manual:
Title: AS/400
International Application Development V4R2
Document Number: SC41-5603-01
Build Date: 12/01/97 19:46:21 Build Version: 1.3.0
Book Path: /home/publib/epubs/book/qb3aq501.boo
This white paper assumes that the Web Server and the application resides on the same iSeries machine. It is possible to have the Web Server and the application on two different iSeries machines. For more information on how to do this please consult the Websydian documentation.
Run the command WSYDCRTQ found in the library WSYDxxx.
The WSYDCRTQ command starts the Websydian data queues and a listener job for these. The data queues are used to pass information from the Web Server to the Websydian application. More information can be found here.
To ease any troubleshooting during development, only start one queue.
Create Local Websydian Queues (WSYDCRTQ)
Type choices, press Enter.
Number of queues . . . . . . .
1 Number
Library to place dataqueues . . WEBTUTOR
Name
Copy objects to appl. library . *YES
*YES, *NO
Description for dataqueues . . . *NONE
Jobd for Websydian Application WSYDJOBD
Name
Library . . . . . . . . . . .
WEBTUTOR Name
Jobq for Websydian Application QINTER
Name
Library . . . . . . . . . . .
QGPL Name
Initial library list . . . . . . *JOBD
Name, *CURRENT, *JOBD...
Websydian Dispatcher program . . WEBTUTOR
Name
Websydian Application job name WEBTUTOR
Name
Library containing runtime . . . WSYD600
Name
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
The parameters are described here. As all parameters are important it is essential that all the settings above are understood.
If using the Apache HTTP Web Server skip this section and proceed with the next.
To use the commands described in this section you must have QSECOFR rights.
Run the command WRKHTTPCFG CFG(x) to configure the Web Server where x is the name of the server configuration. Default is CONFIG.
With reference to the tutorial the lines inserted into the configuration file would be.
Fail /tutorial.dum/*
Map /websydian/tutorial.exe /tutorial.dum/cgidtaq.pgm
Exec /tutorial.dum/* /QSYS.LIB/YTUTORIAL.LIB/* %%EBCDIC/EBCDIC%%
When the web server process a request it is done sequentially through the configuration file.
With the directives above a user would reference the Websydian
application as http://www.mywebserver.com/websydian/tutorial.exe.
If using the IBM HTTP Web Server skip this section and read the previous section instead.
To use the commands described in this section you must have QSECOFR rights.
The examples in this section uses the default Apache configuration called APACHEDFT that is installed by default when installing OS/400 on the iSeries.
There are two ways to configure the Apache Web Server: Using the web administration interface or altering the configuration files manually (used in this white paper).
Use the command WRKLNK to find the file /www/apachedft/conf/httpd.conf and select option 2 (edit).
Add a script alias and directory section for servicing the Websydian application.
Add an alias and directory section for servicing images, static HTML pages, Style Sheets, etc.
Restart the Web Server using the command STRTCPSVR. Always remember to restart the Web Server when configuration files have been changed.
STRTCPSVR SERVER(*HTTP) RESTART(*HTTP) HTTPSVR(APACHEDFT)
For information on iSeries and Websydian go to the site http://doc.websydian.com/Websydian/Installing/as400help/Default.htm
For further information about the Apache Web Server go the to following sites
- Getting Started with Apache - Part I, by Bob Cancilla
- IBM's Apache Based HTTP Server - Part II, By Bob Cancilla
- IBM’s Apache Based HTTP Server - Part III Virtually Enabled, By Bob Cancilla
For additional information on the IBM HTTP Web Server please refer to the IBM manual:
Title: HTTP Server for AS/400 Webmaster's Guide
V4R4
Document Number: GC41-5434-04.
In order to end the Websydian data queues use the command WSYDDLTQ. For starting the Webydian queues again call the WSYDCRTQ.