com.WebOperation.addFault
Adds a fault to the current Web Operation definition.
Syntax
addFault(
fault RECORD ,
wsaaction STRING )
- fault defines the program variable defining the fault.
- wsaaction defines the type of action.
Usage
Adds a fault the Web Operation can throw during operation processing, where
fault is any variable previously created as fault of the
com.WebService
object, and wsaction the WS-Addressing action
identifier if WS-Addressing is supported. If WS-Addressing is not supported, pass NULL as second
parameter.
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).