我試圖用我發現這裏的類進行SOAP調用到我們的Exchange服務器:PHP-EWS類庫總是返回null
http://code.google.com/p/php-ews/
我已經編寫了幾個例子,從基本如下所示,無論我嘗試做什麼,並始終返回null。
$ews = new ExchangeWebServices('exchange.example.com', 'user', 'password');
$request = new EWSType_FindFolderType();
$request->Traversal = EWSType_FolderQueryTraversalType::SHALLOW;
$request->FolderShape = new EWSType_FolderResponseShapeType();
$request->FolderShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES;
$request->IndexedPageFolderView = new EWSType_IndexedPageViewType();
$request->IndexedPageFolderView->BasePoint = 'Beginning';
$request->IndexedPageFolderView->Offset = 0;
$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();
$request->ParentFolderIds->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::INBOX;
$response = $ews->FindFolder($request);
var_dump($response);
有沒有其他人遇到過這個錯誤,或者可能爲我揭示一些光?
php-ews庫的新位置是:https://github.com/jamesiarmes/php-ews/ – UnderDog