2.8 Calling LANSA Web Processes and Functions

For complete details about calling LANSA processes and functions, refer to Executing LANSA Web Function Applications

 

Once you have compiled the functions in your Web-enabled process, you are ready to call or execute the application over the Web. If you are using a procedural function, you can call the LANSA process or you can call the LANSA function directly. If you are using a WEBEVENT function, you must call the LANSA function directly.

LANSA uses URLs to call your LANSA Web function applications. The URL to call your LANSA applications involves invoking the LANSAWEB program. The URL syntax to call your Web-enabled HTML application is:

http://<web server>:port/CGI-BIN/LANSAWEB?<parameters>

 

Calling a LANSA Process

The parameters to call to a LANSA process are:

PROCESS+<process name>+<partition>+<language>

where, partition and language are optional.

For example, if you want to create a link to the MYPROC process in the DEM partition, your URL might be entered as:

http://www.lansa.com/CGI-BIN/LANSAWEB?PROCESS+MYPROC+DEM+ENG

Calling a LANSA Function Directly

The parameters to call a LANSA function are:

PROCFUN+<process name>+<function name>+[<partition>]+[<language>]

For example, if you want to execute the MYFUNC function in the MYPROC process in the DEM partition, your URL might be entered as:

http://www.lansa.com/CGI-BIN/LANSAWEB?PROCFUN+MYPROC+MYFUNC+DEM+ENG

WEBEVENT functions must always be called directly.

 

WEB001 - Types of LANSA Web Functions