com.WebServiceEngine.SetFaultCode

Get a handle for an incoming HTTP service request.

Syntax

com.WebServiceEngine.SetFaultCode(
   code STRING,
   code_ns STRING )
  1. code is the timeout in seconds.
  2. code_ns is the timeout in seconds.

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 code_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 with the appropriate error number.