0

我收到以下错误。怎么了?我如何捕捉或解决这个异常。

致命错误:未捕获的 SoapFault 异常:[a:InternalServiceFault] 由于内部错误,服务器无法处理请求。有关错误的更多信息,请在服务器上打开 IncludeExceptionDetailInFaults(来自 ServiceBehaviorAttribute 或来自配置行为)以便将异常信息发送回客户端,或根据 Microsoft .NET Framework 3.0 SDK 文档打开跟踪并检查服务器跟踪日志。在 G:\work\htdocs\Robi_Francis_API\application\controllers\mirsValidation.php:117 堆栈跟踪:#0 G:\work\htdocs\Robi_Francis_API\application\controllers\mirsValidation.php(117): SoapClient->__call(' processPayment', Array) #1 G:\work\htdocs\Robi_Francis_API\application\controllers\mirsValidation.php(117): SoapClient->

4

1 回答 1

10

尝试这个:

<?php

    try {
        $url = "/api/TestService.asmx?wsdl";
        $client = new SoapClient($url, array("trace" => 1, "exception" => 0));
    } catch (SoapFault $exception) {
        echo $exception->getMessage();
    }
?>
于 2013-07-18T12:21:32.403 回答