AMT Help Files
Home Development Command Translation CICS Commands INVOKE (WEB)SERVICE

INVOKE (WEB)SERVICE

COBOL Java
EXEC CICS INVOKE SERVICE
EXEC CICS INVOKE WEBSERVICE
ibmCics.invoke

Syntax

ibmCics.invoke(new InvokeOptions()
  .uriMap(<UriMap>)
  .serviceName(<ServiceName>)
  .channel(<Channel>)
  .operation(<Operation>)
  [.scope(<Scope>)]
  [.scopeLen(<ScopeLen>)]
  [.noHandle(true)]
  );

Parameter(s)

<UriMap>
Name of the URIMAP to be used. See URIMAP Config.
<ServiceName>
Name of the service to be invoked.
<Channel>
Name of the channel owning the container to be used.
<Operation>
Name of the operation to be invoked.
<Scope>
Optional prefix for the service name.
<ScopeLen>
Optional length of the scope prefix.
<noHandle>
Optional boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

COBOL Java
EXEC CICS
    INVOKE SERVICE('WEBSRV1')
    CHANNEL(WS-CHANNEL)
    OPERATION(WS-OPERATION)
END-EXEC.
                
ibmCics.invoke(new InvokeOptions()
  .serviceName("WEBSRV1")
  .channel(locDef.ws_Channel.getStrValue())
  .operation(locDef.ws_Operation.getStrValue())
);
                

Contents

 Go to top