com.WebServiceEngine.SetFaultDetail

Defines the published SOAP Fault.

Syntax

com.WebServiceEngine.SetFaultDetail(
   fault any-type )
  1. fault defines the program variable that has details of the fault. The any-type can be any Genero BDL variable type: RECORD, ARRAY, or simple data type.

Usage

The com.WebServiceEngine.SetFaultDetail() class method defines the published SOAP Fault to be returned to the client when the operation has finished, where fault is one of the published variables defined as Fault for that operation.

This method must be called inside a Web Service operation.

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