WBSV gate, READ_REQUEST function

The READ_REQUEST function receives the HTTP message body.

Input parameters

SESSION_TOKEN
This is the Web server session token.
BODY_BUFFER
This is the buffer to be received as part of the HTTP message.
RECEIVE_TYPE
This is the type of receive. Values for the parameter are:
  • SYNC
  • ASYNC
TRUNCATE
Optional parameter. This specifies whether the HTTP message is to be truncated. Values for the parameter are
  • NO
  • YES
:
TIME_OUT_VALUE
Optional parameter. This is the timeout period, in seconds, when receiving an HTTP message.

Output parameters

MEDIATYPE
Optional parameter. This is the mediatype of the HTTP message.
CONTENT_LENGTH
Optional parameter. This is the length in the HTTP Content-Length header.
REASON
The following values are returned when RESPONSE is EXCEPTION:
  • PARTIAL_BODY
  • BODY_TRUNCATED
  • HEADERS_MAXLEN_EXCEEDED
  • NO_CONTENT_LENGTH
  • FIRST_LINE_INVALID
  • SCHEDULED
  • HEADERS_PARTLY_PEEKED
  • ASYNC_TRUNCATE_INVALID
  • BODY_ALREADY_RECEIVED
  • TIMED_OUT
  • INVALID_SESSION_TOKEN
  • CONNECTION_CLOSED
  • CONNECTION_CLOSED_ASYNC0
  • SOCKET_ERROR
  • SOCKET_ERROR_ASYNC0
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


dfhs3_WBSVread_request.html | Timestamp icon Last updated: Monday, 5 June 2017