Web Servers and The Common Gateway Interface. Presentation Title Here Presenters Name Here GDT 2007...
-
Upload
jackson-sedgwick -
Category
Documents
-
view
216 -
download
0
Transcript of Web Servers and The Common Gateway Interface. Presentation Title Here Presenters Name Here GDT 2007...
Web Servers and“The Common Gateway
Interface”
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
Topics to Cover
What is CGI? What is the “Internet Application Wizard” and
how does it work? Let’s see it work within a GDT Environment!
Batch Job Submission via the Web Server TPR calling a Web Service to return information See Live!
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Common Gateway Interface
One of the longest-established methods of writing an application for the Internet or an intranet is the server-side program.
Server-side programs are often known as CGI programs, or simply CGIs.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
How to create a CGI program
Net Express contains all the tools you need to create CGI-based applications in COBOL. Internet Application Wizard Create three flavors of
internet application: Create HTML pages and forms and server-side programs to
access relational databases over the Internet or an Intranet. Turn a COBOL subroutine into an Internet application
instantly. Create a skeleton server-side program using pages and
forms from Form Designer.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
Internet Application Wizard
Reduces the amount of effort involved in creating server-side programs and associated HTML forms.
Server-side programs can easily be generated from: Existing COBOL programs SQL databases HTML forms (designed with Form Designer in Net
Express)
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
Highlights of the Wizard
Where necessary, the Internet Application Wizard generates the HTML forms to accompany the server-side program.
All the generated files can be automatically added to the current project.
You can create applications for use with CGI (supported by all Web servers).
When you have created an application with the wizard, you can use it as it is or you can modify the forms with Form Designer and extend the COBOL source code.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Create a new Internet Application project via the Micro Focus Net Express IDE (NE 4.0)
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
What Internet Application do you want to generate, the source to be used and the type of Application?
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Define the Project Name and Location
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
You need to provide the Source COBOL program.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
A closer look at the COBOL program. Note the use of the Linkage Session and the Using clause with Procedure Division.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The heart of the Procedure Division
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Define the Application Style
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The Wizard’s Generated File names
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The Parameter Assignments The Parameter
Assignments page of the Internet Application Wizard enables you to assign different types of form controls (radio buttons, checkboxes, text input etc.) to parameters in the Linkage Section of your COBOL program.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
For each COBOL parameter that is represented on an HTML form, set the type of control that should represent it.
For each COBOL parameter, specify whether the relevant form control should appear on the input form, the output form, both or none. You can do this by clicking in the appropriate row of the I/O column and selecting from the entries in the drop-down menu. You can set the I/O column for all the parameters in a group by right-clicking on the group item in the tree view and clicking In, Out, Both or N/A on the popup menu. All subitems inherit the group item setting.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The End of the Wizard. It is that easy!
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The Internet Application Wizard has now created all of the programs and web pages that are needed to run the web application as a CGI. Generally the CGI is now ready, but since we are needing to run this in the GDT environment we have to do some more steps.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Preparation of the Build Settings
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
You need to link to the Object that allows access to GDT (GSUBJBI.OBJ). Additionally all external Micro Focus functions have to be linked in (fhrdrpwd.obj, cbldc001.obj, mffh.obj and outddfh.obj).
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Time to Rebuild the Whole Project
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Results of the Rebuild
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Configure the Application Environment
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Deploy the CGI to IIS. GDTTCW virtual directory
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Deploy the CGI to IIS. CGI-BIN virtual directory
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Copy the IISSUBJOB2_INPUT.htm from the \ICOM\WebBatchExecution folder to the \INETPUB\WWWROOT\gdttc folder
Copy the IISSUBJOB2_SERVER.exe from the \ICOM\WebBatchExecution\Debug folder to the \INETPUB\WWWROOT\gdttc\cgi-bin folder
Bring up the GDT environment. In this case we will bring up the ICOM GDT environment. Fileshare, TCS, Console and Fsys01
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Running the Web Application. Very basic Form.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
We will enter the JCL name and press the Submit Form Button. This will launch the JCL and you can monitor it via the GDT Console.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
GDT CONSOLE VIEW
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Use the Net Express IDE Form Designer, to modify the .htm form to your liking.
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
Modified Form and Rebuild the project
Presentation Title HerePresenter’s Name Here
GDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada
The Demonstration
The final product!