4.1.2 SERVICE_LOAD
The JSM client is aware that it has been invoked by the JSMDirect program and will modify the SERVICE_LOAD command being sent to the JSM service manager.
Normally, the SERVICE_LOAD command would be:
SERVICE_LOAD |
SERVICE(servicename) |
When invoked by JSMDirect the modified SERVICE_LOAD command is:
SERVICE_LOAD |
SERVICE( ) |
|
REQUEST-METHOD( ) |
|
CONTENT-TYPE( ) |
|
REMOTE-ADDRESS(address) |
|
REMOTE-USER(user) |
|
SERVER-NAME(name) |
|
SERVER-PORT(port) |
|
CGI-INPUT-MODE(mode) |
|
CGI-OUTPUT-MODE(mode) |
|
CGI-ASCII-CCSID(ccsid) |
|
CGI-EBCDIC-CCSID(ccsid) |
|
SERVER-SOFTWARE(software) |
|
SERVER-PROTOCOL(version) |
|
GATEWAY-INTERFACE(version) |
|
USER-AGENT(useragent) |
|
USER-AGENT-PATH(path) |
|
USER-AGENT-FILE(file) |
|
USER-AGENT-LOCALE(locale) |
|
QUERY-STRING(querystring) |
|
SOAPACTION(soapaction) |
|
COOKIE(cookie data) |
|
ACCEPT(mime types) |
|
REFERER(url) |
|
DIRECT-VERSION(version) |
|
PROXY-VERSION(version) |
|
PROXY-SERVER-NAME(name) |
|
PROXY-SERVER-PORT(port) |
|
PROXY-REMOTE-ADDRESS(address) |
|
PROXY-REMOTE-USER(user) |
|
AS2-TO(company) |
|
AS2-FROM(company) |
|
AS2-VERSION(version) |
|
FROM(from) |
|
DATE(date) |
|
SUBJECT(subject) |
|
MESSAGE-ID(message-id) |
|
DISPOSITION-NOTIFICATION-TO(address) |
|
DISPOSITION-NOTIFICATION-OPTIONS(options) |
|
RECEIPT-DELIVERY-OPTION(url) |
If information is being sent to the function (i.e. if the HTTP request is a POST), then the information (content payload) is passed with the command as the byte array object.
The service program can access the HTTP POST content by calling the getByteArray method on the command object.
When the JSM CLOSE is performed, the last byte array returned by a JSMResponse object is sent back to the HTTP user agent.
Example of some HTTP keyword values:
|