这对我来说真的很莫名其妙。两天前,我让您的 php-ews 使用限制条件与我的所有 EWS 文件完美配合:
$start = new DateTime('2014-06-05');
$Request->Restriction = new EWSType_RestrictionType();
$Request->Restriction->And = new EWSType_AndType();
$Request->Restriction->And->IsGreaterThan = new EWSType_IsGreaterThanType();
$Request->Restriction->And->IsGreaterThan->FieldURI = new stdClass;
$Request->Restriction->And->IsGreaterThan->FieldURI->FieldURI = 'item:DateTimeSent';
$Request->Restriction->And->IsGreaterThan->FieldURIOrConstant->Constant->Value = $start->format('c');
现在,每当我尝试运行此脚本时,我都会在标题中收到错误消息。我检查过,我的文件确实包含对 SearchExpression 和 SearchExpressionType 的引用。
如有必要,我会非常乐意发布我的 wsdl 和 xsd 文件。任何线索这个错误可能源于什么?
PS我正在使用exhange 2013,我可以很好地接收电子邮件,只是没有限制。