com.WebServiceEngine.SetFaultDetail

Defines the published SOAP Fault.

Syntax

com.WebServiceEngine.SetFaultDetail(
   fault RECORD )
  1. fault defines the published fault.

Usage

The com.WebServiceEngine.SetFaultDetail() class method defines the published SOAP Fault to be returned to the client when 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).