Server Reference Guide : 7. ASOLib--OpenROAD Server Library : How Interaction Between a TCA and an Application Using ASOLib Works
 
Share this page                  
How Interaction Between a TCA and an Application Using ASOLib Works
The code fragments and notes that follow demonstrate the basic interaction between an OpenROAD Thin Client Application (TCA) and an OpenROAD Server application using ASOLib.
The steps required to facilitate this interaction include:
1. Initiate a connection to the OpenROAD Server application (using the Name Server 4GL client object ASONameServer).
2. Create a session context object in the OpenROAD Server application (by calling system SCP CreateASOSession).
3. Nominate a remote user class BPM whose methods are to be invoked (by calling system SCP DefineBPM).
4. Invoke methods of the remote user class object by calling GSCP method proxies. Calls to user-written SCPs and GSCPs that wrap regular 4GL procedures can also be made.
5. Destroy the session context object in the OpenROAD Server application by calling system SCP DestroyASOSession.
6. Release the connection to the OpenROAD Server application.