The SEND command is used to create XML content to send back as a response to the remote HTTP client program.
When the SEND command of this service is executed the following steps occur:
The optional UAFILE and UAPATH keywords are available to inform the remote client program of a recommended path and filename for the content. LANSA Integrator UserAgent will add these file and path names to the save popup menu on the response panel.
To send a custom CORS response, use the SET PROPERTY command to set the HTTP response properties and use the SEND RESPONSE(*EMPTY) to return no content.
Command | Keyword | Value | Developer notes |
|---|---|---|---|
SEND | ARCHIVE | Optional. See ARCHIVE. | |
CONTENT | Optional. See CONTENT. | ||
ENCODING | Optional. See ENCODING. | ||
STATUS | value | Optional: HTTP status number. | |
MESSAGE | value | Optional: HTTP status message. | |
UAPATH | value | Optional. User agent save response path. | |
UAFILE | value | Optional. User agent save response file. | |
UACACHE | value | Optional. Cache-Control max-age. | |
UADISPOSITION | value | Optional. Content-Disposition filename. | |
CHARSET | *YES | Optional. Include charset attribute. | |
*NO | Do not include charset attribute. | ||
*TEXT | Default. Include charset attribute if content is text. | ||
RESPONSE | *CORS | Optional. Send a Cross-Origin Resource Sharing response | |
*EMPTY | Send an empty content response. |
SEND UAFILE(order.xml) UACACHE(20)