When I make __soapCall
(client pointing to a WSDL) and the request is invalid in the server side, the caught exception's message is coming out as general as this:
An error occurred while executing the command definition. See the inner exception for details.
This is an example of one of my try-catch blocks:
try {
$soapCallResult = $client->myWSDLMethod(array(...));
} catch (Exception $e) {
echo 'Exception in myWSDLMethod: ', $e->getMessage(), PHP_EOL;
}
When I var_dump the getTrace()
, the array only points to the file and line where I make this call, which is not useful at all... It seems there is no getInnerExceptionMessage()
method in the Exception class or something remotely similar to that. So how should I access that inner exception?