WBSV gate, WRITE_RESPONSE function
The WRITE_RESPONSE function sends the HTTP message.
Input parameters
- SESSION_TOKEN
- This is the Web server session token.
- BODY | BODY_LIST
- This is the body list to be sent as the body of an HTTP message.
- MEDIATYPE
- This is the media type of the HTTP message.
- STATUS_TEXT
- This is the status text to be sent with the HTTP message. The default is "OK".
- STATUS_CODE
- This is the status code to be sent with the HTTP message. The default is 200.
- HEADER1_NAME
- This is the name of the first additional HTTP header to be sent with the HTTP message.
- HEADER2_NAME
- This is the name of the second HTTP header to be sent with the HTTP message.
- HEADER2_VALUE
- This is the value of the second HTTP header to be sent with the HTTP message.
- HEADER3_NAME
- This is the name of the third HTTP header to be sent with the HTTP message.
- HEADER3_VALUE
- This is the value of the third HTTP header to be sent with the HTTP message.
- HEADER_NAME_LIST
- This is the list of header names to be sent with the HTTP message.
- HEADER_VALUE_LIST
- This is the list of header values to be sent with the HTTP message.
- TIME_OUT_VALUE
- This is the timeout value to be applied to the socket SEND for the response.
Output parameters
- REASON
- The following values are returned when RESPONSE is EXCEPTION:
- HEADER1_NAME_NOTALLOWED
- HEADER2_NAME_NOTALLOWED
- HEADER3_NAME_NOTALLOWED
- HEADERLIST_NAME_NOTALLOWED
- MAX_LIST_SIZE_EXCEEDED
- NO_CLIENT_CHARSET
- HEADERS_MAXLEN_EXCEEDED
- INVALID_SESSION_TOKEN
- INVALID_MEDIATYPE
- CONNECTION_CLOSED
- The following values are returned when RESPONSE is INVALID:
- INVALID_FORMAT
- INVALID_FUNCTION
- The following values are returned when RESPONSE is DISASTER:
- ABEND
- LOOP
- RESPONSE
- Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.