is_soap_fault()
is_soap_fault - Checks if a SOAP call has failed
Syntax
bool is_soap_fault (
mixed $object)
Arguments
- object - The object to test.
Description
This function is useful to check if the SOAP call failed, but without using exceptions. To use it, create a SoapClientobject with the exceptionsoption set to zero or FALSE. In this case, the SOAP method will return a special SoapFaultobject which encapsulates the fault details (faultcode, faultstring, faultactor and faultdetails).
Version
PHP Unknown
Return value
This will return TRUE on error, and FALSE otherwise.