AMT Help Files
Home Development Command Translation CICS Commands WEB SEND

WEB SEND

COBOL Java
EXEC CICS WEB SEND ibmCics.webSend

Syntax

ibmCics.webSend(new WebSendOptions()
  .uriMap(<UriMap>)
  .sessToken(<SessToken>)
  .requestType(<RequestType>)
  [.cliConvert(true)]
  .mediaType(<MediaType>)
  .from(<From>)
  .fromLength(<FromLength>)
  [.noHandle(true)]
);

Parameter(s)

<UriMap>
Name of the URIMAP to be used. See URIMAP Config.
<SessToken>
The session token of the connection.
<RequestType>
The HTTP method to perform, for example GET, POST or PUT.
<cliConvert>
Optional boolean. If set to true, the body of the request will be translated into the code page set for the server.
<MediaType>
The media type of the message body, for example 'text/xml'.
<From>
Data area containing the message body.
<FromLength>
Length of the message body.
<noHandle>
Optional boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

COBOL Java
EXEC CICS
    WEB SEND
        SESSTOKEN(WS-SESSTOKEN)
        POST
        URIMAP('MYURIMAP')
        MEDIATYPE(WS-MEDIATYPE)
        FROM(WS-BODY)
        FROMLENGTH(512)
END-EXEC.
                
ibmCics.webSend(new WebSendOptions()
  .uriMap("MYURIMAP")
  .sessToken(locDef.ws_Sesstoken)
  .requestType("POST")
  .mediaType(locDef.ws_Mediatype.getStrValue())
  .from(locDef.ws_Body.getStrValue())
  .fromLength(512)
);
                

Contents

 Go to top