Create RXS Server (CRTRXSSVR)

The Create RXS HTTP Server (CRTRXSSVR) command allows the user to create an HTTP server instance for use by RPG API Express.

New in RXS 3.5.0:

Enhancements

  • Added support for 5-digit port numbers up to 65535.
  • New special values for the PORT parameter - *HTTP and *HTTPS - which will specify ports 80 or 443, respectively.

Parameters

HTTP server instance (HTTPSVR)

This is a required parameter.

Specifies the name of the HTTP server instance to create.

If this parameter is specified with any value other than HTTPSVR(*RXSLIB), an RPG API Express development library is also created, with the same name as the HTTP server instance. Several objects are copied into it from the RPG API Express product library. It is these objects (files, programs service programs, etc.) that are used when you develop your applications which use RPG API Express.

If you specify HTTPSVR(*RXSLIB), only the HTTP server instance is created with the same name as the RPG API Express product library. You should use this option if you only wish to use the RXS Router product, and are not intending to do any other RPG API Express development.

Possible Values:

name
An HTTP server instance is created and an RPG API Express development environment library is also created with the same name.
RXSLIB
An HTTP server instance is created with the same name as the RPG API Express product library. No RPG API Express development environment library is created.

RXS product library (RXSLIB)

Specifies the name of the RPG API Express product library to use when creating the RPG API Express environment.

Possible Values:

RXS
The default RPG API Express product library RXS will be used.
library-name
The named RPG API Express product library will be used.

Port number (PORT)

Specifies the port number to use for the HTTP server instance.

Note: No checks are performed that the specified port number is not already in use, either by an existing HTTP server instance or by another application.

Possible Values:

DFT
The default port number 8181 is used.
*HTTP
The HTTP-standard port 80 will be used.
*HTTPS
The HTTPS-standard port 443 will be used.
port-number
The specified port number is used.