com.WebOperation.CreateRPCStyle

Creates a new Web Operation object with RPC style.

Syntax

com.WebOperation.CreateRPCStyle(
   function STRING,
   operation STRING,
   inputVar any-type,
   outputVar any-type )
  RETURNS com.WebOperation
  1. function defines the program function to be called to process the XML operation.
  2. operation defines the XML operation.
  3. inputVar defines the program variable for the input of the operation. The any-type can be any Genero BDL variable type: RECORD, ARRAY, or simple data type. It can return a NULL value.
  4. outputVar defines the program variable for the output of the operation. The any-type can be any Genero BDL variable type: RECORD, ARRAY, or simple data type. It can return a NULL value.

Usage

This method creates a Request-Response RPC 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. 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).