com.WebService.publishOperation

Publishes a Web Operation.

Syntax

publishOperation(
   op com.WebOperation,
   role STRING )
  1. op defines the Web Operation object.
  2. role identifies uniquely the Web Operation.

Usage

The publishOperation() method publishes the Web Operation specified by the com.WebOperation object passed as parameter.

The role identifies the operation, if several operations have the same name, by setting the SOAPAction HTTP header. Usually this parameter is set to NULL.

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).