com.WebOperation.CreateDOCStyle

Creates a new Web Operation object with Document style.

Syntax

com.WebOperation.CreateDOCStyle(
   function STRING,
   operation STRING,
   input RECORD,
   output RECORD)
  RETURNING result com.WebOperation
  1. function is the name of the program function to be called to process the XML operation.
  2. operation is the name of the XML operation.
  3. input is the input record defining the input parameters of the operation (or NULL if there is none).
  4. output is the output record defining the output parameters of the operation (or NULL if there is none).

Usage

This method creates a Request-Response Document style com.WebOperation object, where function is the name of the program function that is executed to process the XML operation.

The function name must be a string literal, not a string variable, due to operation publication restrictions.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.