2 9 Calling LANSA Web Processes and Functions

LANSA Web Functions

2.9 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 for the Web uses URLs to call your LANSA Web function applications. The URL to call your LANSA applications involves invoking the LANSAWEB or LANSAXML program. The URL syntax to call your Web-enabled HTML application is:

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

and for XML it is:

http://<web server>:port/CGI-BIN/LANSAXML?<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 PSLSYS process in the DEM partition, your URL might be entered as:

http://www.lansa.com/CGI-BIN/LANSAWEB?PROCESS+PSLSYS+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 ENROL function in the PSLSYS process in the DEM partition, your URL might be entered as:

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

WEBEVENT functions must always be called directly.

 

WEB001 - Types of LANSA Web Functions