com.WebService.registerOutputHTTPVariable

Registers the record variable for HTTP output.

Syntax

registerOutputHTTPVariable(
   http-out http-out-type )
  1. http-out is the HTTP output record variable.
  2. http-out-type is a RECORD with the following structure:
    RECORD
      code INTEGER,
      desc STRING,
      headers DYNAMIC ARRAY OF RECORD
        name  STRING,
        value  STRING
      END RECORD
    END RECORD

Usage

The registerOutputHTTPVariable() method registers a program variable with a specific structure, that will be used to fill the HTTP response headers when a Web Operation is completed.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).