JSMDirect is an HTTP service extension to JSM.
JSMDirect allows a LANSA/RPG program to participate in Web services and JVM transactions.
The JSMDirect program accepts POSTed content that contains the Content-Length HTTP protocol property. The IBMi JSMDirect program running on the IBMi Apache server can also accept Chunked-Transfer encoded content.
Note: Chunked-Transfer encoding is not supported on the Windows platform.
The JSMDirect query string can be in the original keyword format or the industry standard name-value pairs. The name service is reserved.
To display the JSMDirect version number invoke the program with no arguments. An HTML About page will be returned.
Using JSMDirect, a LANSA function can be invoked as follows:
For example, to run the ORDERENTRY function:
The JSMDIRECT program locates the LANSA function to be executed based on the appname.
JSMDirect requires an installed HTTP Server.