4 1 2 SERVICE_LOAD

LANSA Integrator

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(servicename)

 

REQUEST-METHOD(method)

 

CONTENT-TYPE(mime 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:

PROPERTY

EXAMPLE VALUE

USER-AGENT-PATH

/upload/data

CONTENT-TYPE

text/comma-separated-values; charset=utf-8

CGI-EBCDIC-CCSID

37

CGI-ASCII-CCSID

819

CGI-INPUT-MODE

BINARY

CGI OUTPUT MODE

BINARY

SERVER-PORT

80

USER-AGENT-FILE

order.xls

REQUEST-METHOD

POST

REMOTE-USER

CUST100

USER-AGENT

LANSA Integrator UserAgent/11.4.0 (Client)

REMOTE-ADDRESS

10.2.1.7

SERVER-PROTOCOL

HTTP/1.0

QUERY-STRING

Order

SERVER-NAME

lansa01.lansa.com.au

SERVER-SOFTWARE

Apache

USER-AGENT-LOCALE

en_AU