beautypg.com

Review the, Overview of the transfer service – HP NonStop G-Series User Manual

Page 266

background image

/pkg/iis/teller.

Note

Edit the file, web_start.inc, to specify the correct hostname and port number for the Jolt
Session Pool.

The code samples shown in

TRANSFER Request Walkthrough

are available from a sample

application delivered with the Jolt Web Application Services software.

Table 3-1

lists the

files in the sample application. These files are a valuable reference for the walkthrough and
are located in /pkg/iis/teller.

7.

Table 3-1. Bankapp Sample Source Files

File Name

Description

tellerForm.asp

Initializes the Jolt Session Pool Manager and displays available
bankapp services.

transferForm.htm

Presents an HTML form for user input.

tlr.asp

Processes the HTML form and returns results as an HTML page.

web_admin.inc

VBScript functions for initializing the Jolt Session Pool Manager.

web_start.inc

VBScript functions for initializing the Jolt Session Pool Manager.

web_templates.inc

VBScript functions for caching HTML templates.

templates/
transfer.temp

HTML templates used for returning results.

Overview of the TRANSFER Service

The TRANSFER Service in bankapp moves funds between two accounts. The service takes two
account numbers, an input amount, and returns two balances--one for each account. In addition,
the service returns an error message if there is an application or system error.

A TRANSFER is a WITHDRAWAL and a DEPOSIT executed as a single transaction. The
transaction is created on the server, so the client does not need to create a transaction.

The client interface consists of an HTML page with a form used to enter the required data --
account numbers and a dollar amount. This data is sent to the Web server as a "POST" request.

In the Web server, this request is processed using a VBScript Active Server Page. This program
extracts the input data fields from the request, formats them for use with the Jolt Web Application
Services class library, and dispatches the request to the TRANSFER service in the bankapp
application. The TRANSFER service returns the results of the transaction. These results are
returned to the VBScript program that merges them into a dynamically created HTML page. This
page is returned to the client via the Web server infrastructure.