php – 未捕获的soapfault异常
发布时间:2020-12-13 22:31:36 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试使用php-ews,但是我遇到了一些我不知道的问题,下面是错误. Fatal error: Uncaught SoapFault exception: [VersionMismatch] Wrong Version in C:wampwwwintranetdashboardphp-ewsExchangeWebServices.php:230 Stack trace: #0 C:wampwwwi
我正在尝试使用php-ews,但是我遇到了一些我不知道的问题,下面是错误.
Fatal error: Uncaught SoapFault exception: [VersionMismatch] Wrong Version in C:wampwwwintranetdashboardphp-ewsExchangeWebServices.php:230 Stack trace: #0 C:wampwwwintranetdashboardphp-ewsExchangeWebServices.php(230): SoapClient->__call('FindItem',Array) #1 C:wampwwwintranetdashboardphp-ewsExchangeWebServices.php(230): NTLMSoapClient_Exchange->FindItem(Object(EWSType_FindItemType)) #2 C:wampwwwintranetdashboardmailtest.php(56): ExchangeWebServices->FindItem(Object(EWSType_FindItemType)) #3 {main} thrown in C:wampwwwintranetdashboardphp-ewsExchangeWebServices.php on line 230 该文件的第230行如此 public function FindItem($request) { return $this->initializeSoapClient()->{__FUNCTION__}($request); } 如果有人有任何想法,将不胜感激. 解决方法
尝试:
public function FindItem($request) { try { return $this->initializeSoapClient()->{__FUNCTION__}($request); } catch(SoapFault $ex) { print $ex->getMessage(); print $ex->getTraceAsString() } } 并看看PHP SOAPClient (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |