Server Reference Guide : ASOLib--OpenROAD Server Library : How You Can Use ASOLib from a Non-OpenROAD Thin Client
 
Share this page          
How You Can Use ASOLib from a Non-OpenROAD Thin Client
In the preceding sections, you were shown how to use ASOLib from an OpenROAD client and told how to create an OpenROAD Server application that uses ASOLib.
The code fragments and notes that follow demonstrate the basic interaction between a non-OpenROAD Thin Client Application and an OpenROAD Server application using ASOLib. The examples given are Visual Basic for Applications (VBA) and Active Server Page (ASP) code using VBScript.
Driving ASOLib from ASP using VBScript is similar to driving it from an OpenROAD client. The sequence of calls made and the basic programming logic are identical.
Follow these required steps to drive ASOLib from ASP using VBScript:
1. Make a connection to the OpenROAD Server application, and create a session context object in the OpenROAD Server application using a client ASOSession COM helper object.
2. Nominate a remote user class (a BPM) whose methods are to be invoked. Choose one of the following:
Call GSCP method proxies to invoke methods of the remote user class object.
Call user-written SCPs and procedure GSCPs that wrap regular 4GL procedures. Such stateless calls can be interleaved with stateful method GSCP calls.
3. Destroy the session context object in the OpenROAD Server application and release the connection.