com.WebServiceEngine.SetFaultCode

Get a handle for an incoming HTTP service request.

Syntax

com.WebServiceEngine.SetFaultCode(
   code STRING,
   ns STRING )
  1. code defines the fault code.
  2. ns defines the namespace of the fault code.

Usage

The com.WebServiceEngine.SetFaultCode() class method defines a user SOAP Fault code to be returned to the client, where code is the mandatory SOAP Fault code and ns is the mandatory code namespace.

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