Soap调用中的异常未提供任何详细信息

时间:2018-08-03 05:12:24

标签: php soap-client

我有一个PHP页面,可以像这样进行Soap调用:

ini_set('default_socket_timeout', 90);

    try {
        $client = new SoapClient($wsdlurl, $options);
        $customerData = $client->NewCustAddDC($params);

    } catch (SoapFault $e22) {
        doLog('Message: ' . $e22->getMessage());
        doLog('Message2:' . $e22->getTraceAsString());
        doLog( "<pre>SoapFault: ".print_r($e, true)."</pre>\n");
    }

这将导致异常,但没有详细信息。不知道是什么原因造成的:

2018-08-03 05:06:16 |  |  : --------------------
2018-08-03 05:06:32 |  |  : Message: Failure sending mail.
2018-08-03 05:06:32 |  |  : Message2:#0 /srv/users/staging/apps/staging/public/wp-content/themes/dp-ecomm-three_paths/functions.php(674): SoapClient->__call('NewCustAddDC', Array)
#1 /srv/users/staging/apps/staging/public/wp-content/themes/dp-ecomm-three_paths/functions.php(674): SoapClient->NewCustAddDC(Array)
#2 /srv/users/staging/apps/staging/public/wp-content/themes/dp-ecomm-three_paths/functions.php(571): SubmitToSysPro(Array, Array, Array)
#3 /srv/users/staging/apps/staging/public/wp-content/themes/dp-ecomm-merged/ajax.php(427): callSysproApi(Array)
#4 /srv/users/staging/apps/staging/public/wp-content/themes/dp-ecomm-merged/ajax.php(199): doSysPro(Array, false)
#5 {main}
2018-08-03 05:06:32 |  |  : <pre>SoapFault: </pre>

0 个答案:

没有答案