com.WebOperation.addFault

Adds a fault to the current Web Operation definition.

Syntax

addFault(
   fault fault-type,
   wsaaction STRING )
  1. fault is a program variable defining the fault.
  2. fault-type is a simple data type, a RECORD or an ARRAY.
  3. 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.