OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

8.5.2 Outline of sample program processing

An outline of sample program processing is given below. For details, see the source file of the sample program.

The client UAP retrieves private information about one person by sending a reference request to the server. Then, it sends an update request to the server to update sales amounts. Finally, it sends a reference request to confirm that sales amounts have been updated.

When the client UAP requests the server UAP for service, operation can be checked through message log output. The message log is output after a reference if the request is a reference request or before a update if the request is an update request.

When a reference or update process is completed, a message log is also output to the server UAP to indicate whether the process was successful.

Messages output from the client UAP are given a character string client and messages output from the server UAP are given a character string server. This helps identify which UAP issued the message. The figures below show the relationship between client and server UAP calls, for C and COBOL, respectively.

Figure 8-6 Relationship between client and server UAP calls (C language)

[Figure]

Figure 8-7 Relationship between client and server UAP calls (COBOL language)

[Figure]