4.1 JSMDirect
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.
http://mycompany/cgi-bin/jsmdirect
http://mycompany/cgi-bin/jsmdirect.exe
Using JSMDirect, a LANSA function can be invoked as follows:
http://mycompany/cgi-bin/jsmdirect?appname
http://mycompany/cgi-bin/jsmdirect?service=appname
http://mycompany/cgi-bin/jsmdirect.exe?appname
http://mycompany/cgi-bin/jsmdirect.exe?service=appname
For example, to run the ORDERENTRY function:
http://mycompany/cgi-bin/jsmdirect?orderentry
http://mycompany/cgi-bin/jsmdirect?service=orderentry
http://mycompany/cgi-bin/jsmdirect.exe?orderentry
http://mycompany/cgi-bin/jsmdirect.exe?service=orderentry
The JSMDIRECT program locates the LANSA function to be executed based on the
.JSMDirect requires an installed HTTP Server.
JSMDirect does not require or use any of the LANSA for the Web software.