WEB RECEIVE
| COBOL |
Java |
| EXEC CICS WEB RECEIVE |
ibmCics.webSend |
Syntax
ibmCics.webSend(new WebSendOptions()
.sessToken(<SessToken>)
[.mediaType(<MediaType>)]
[.statusCode(<StatusCode>)]
[.statusText(<StatusText>)]
[.statusLen(<StatusLen>)]
.into(<Into>)
.msgLength(<MsgLength>)
[.maxLength(<MaxLength>)]
[.noHandle(true)]
);
Parameters
- <SessToken>
- The session token of the connection.
- <MediaType>
- The media type of the message body, for example 'text/xml'.
- <StatusCode>
- Data area to receive the HTTP status code, for example 200, 404 or 500.
- <StatusText>
- Data area to receive the text of the HTTP status, for example 'OK', 'Not Found' or 'Internal Server Error'.
- <StatusLen>
- Maximum length of the 'StatusText' data area.
- <Into>
- Data area to receive the data from the server.
- <MsgLength>
- Data area which is updated with the length of the data received.
- <MaxLength>
- Maximum length of the 'Into' data area.
- <noHandle>
- Optional boolean. If set to true, exceptions created by this command will be ignored.
Examples
| COBOL |
Java |
EXEC CICS
WEB RECEIVE
SESSTOKEN(WS-SESSTOKEN)
MEDIATYPE(WS-MEDIATYPE)
STATUSCODE(WS-STATUSCODE)
STATUSTEXT(WS-STATUSTEXT)
STATUSLEN(WS-STATUSLEN)
INTO(WS-DATA)
LENGTH(WS-DATALENGTH)
MAXLENGTH(WS-MAXLENGTH)
END-EXEC.
|
ibmCics.webReceive(new WebReceiveOptions()
.sessToken(locDef.ws_Sesstoken)
.mediaType(locDef.ws_Mediatype)
.statusCode(locDef.ws_Statuscode)
.statusText(locDef.ws_Statustext)
.statusLen(locDef.ws_Statuslen.getIntValue())
.into(locDef.ws_Data)
.msgLength(locDef.ws_Datalength)
.maxLength(locDef.ws_Maxlength)
);
|