Publishes a Web Operation.


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


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