Exposes a CICS application program as a Web service by generating one or more JavaScript Object Notation (JSON) schema files
and a Web service bind (WSBIND) file.
Important: Before attempting to run a CICS Web Service on
Enterprise Server,
review the information in the
Configuration Requirements for CICS Web Services topic.
Syntax:
ls2js {json-schema=json-filename|
json-schema-request=request-filename
json-schema-response=response-filename}
pgmint={channel|commarea}
pgmname=program-name
reqmem=request-copy-file
uri=address
wsbind=bind-file
[bundle=folder-name]
[ccsid=ccsid]
[contid=container-name]
[data-truncation={enabled|disabled}]
[datetime={unused|packed15}]
[logfile=logfile]
[operation-name=operation-name]
[pdsmem=pds-prefix]
[respmem=response-copy-file]
[jsontransfrm=transform-filename]
[synconreturn={yes|no}]
ls2js -help
Parameters:
- json-schema=json-filename
- The fully qualified name of the JSON schema file. linkable interfaces only.
- json-schema-request=request-filename
- The fully qualified name of the JSON schema file that contains the input data area. Must be used with
json-schema-response=response-filename. For Request-Response services only.
- json-schema-response=response-filename
- The fully qualified name of the JSON schema file that contains the output data area. Must be used with
json-schema-request=request-filename. For Request-Response services only.
- pgmint={channel|commarea}
-
- channel
- Pass data via a channel container.
- commarea
- Pass data via a commarea.
- pgmname=program-name
- The name of the target application program to expose as a Web service.
- reqmem=request-copy-file
- The fully qualified name of the copybook file containing the high-level language structure for the Web service request.
- uri=address
- The relative or absolute URI to be used by a client to access the Web service.
- wsbind=bind-file
- The fully qualified name of the Web service bind file.
- bundle=folder-name
- The path to and name of the bundle directory and archive file (.zip or
.jar). Linkable interface only.
- ccsid=ccsid
- The CCSID used at runtime to encode character data into the application data structure.
- contid=container-name
- The name of the container that holds the top-level data structure used to represent a JSON message. When not specified, this
defaults to
DFHWS-DATA.
- data-truncation={enabled|disabled}
-
- enabled
- Variable-length data is tolerated in a fixed-length field structure.
- disabled
- Variable-length data is not tolerated in a fixed-length field structure.
- logfile=logfile
- The fully qualified name of a logfile to contain output information generated by the
ls2js command. When not specified, no logfile is generated.
- pdsmem=pds-prefix
- For linkable interface only, the prefix to use for the copybook containing the generated data structure.
- respmem=response-copy-file
- The fully qualified name of the copybook file containing the high-level language structure for the Web service response.
- synconreturn={yes|no}
-
- yes
- The remote service can issue a sync point.
- no
- The remote service cannot issue a sync point.
- -help
- Displays information about
ls2js parameters.