AMT Help Files
Home Development Command Translation CICS Commands WEB RECEIVE

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)]
);

Parameter(s)

<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.
<MsgLength>
Data area which is updated with the length of the data received.
<MaxLength>
Maximum length of the received data.
<noHandle>
Optional boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

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)
);
                

Contents

 Go to top