Reputation: 717
I'm trying to work with php-ews at the moment, however having some sort of issue with soap which i have no idea about, below is the error.
Fatal error: Uncaught SoapFault exception: [VersionMismatch] Wrong Version in C:\wamp\www\intranet\dashboard\php-ews\ExchangeWebServices.php:230 Stack trace: #0 C:\wamp\www\intranet\dashboard\php-ews\ExchangeWebServices.php(230): SoapClient->__call('FindItem', Array) #1 C:\wamp\www\intranet\dashboard\php-ews\ExchangeWebServices.php(230): NTLMSoapClient_Exchange->FindItem(Object(EWSType_FindItemType)) #2 C:\wamp\www\intranet\dashboard\mailtest.php(56): ExchangeWebServices->FindItem(Object(EWSType_FindItemType)) #3 {main} thrown in C:\wamp\www\intranet\dashboard\php-ews\ExchangeWebServices.php on line 230
line 230 of that file is as so
public function FindItem($request) {
return $this->initializeSoapClient()->{__FUNCTION__}($request);
}
if anyone has any ideas, it would be greatly appreciated.
Upvotes: 4
Views: 8392
Reputation: 4073
try:
public function FindItem($request) {
try {
return $this->initializeSoapClient()->{__FUNCTION__}($request);
}
catch(SoapFault $ex) {
print $ex->getMessage();
print $ex->getTraceAsString()
}
}
and take a look at PHP SOAPClient
Upvotes: 1