使用 PHP Outlook Web Access 时出错:通过 OWA API 访问Microsoft Exchang


error while using PHP Outlook Web Access: Access Microsoft Exchange Web services via OWA API

我正在使用PHP Outlook Web Access:通过OWA API访问Microsoft Exchange Web服务,其唯一目的是访问用户的日历约会。对于所有用户来说,一切正常,但对于一个特定用户,它显示错误为:

Message: Use of undefined constant _DEBUG_ - assumed '_DEBUG_'
Filename: classes/connection.php
Line Number: 51
There was a problem parsing your XML!
New http() object instantiated.
--------------------------------
fetch() called
url: https://exchange.icimod.org/Exchange/spandey/calendar/
getFromUrl() called
Authentication will be attempted
XML request will be sent
HTTP/1.1 302 Object Moved
Content-Length: 179
Content-Type: text/html
Location: https://exchange-1.icimod.org/Exchange/spandey/calendar/
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Tue, 08 Oct 2013 05:12:21 GMT
Connection: close

    Object Moved
This document may be found here
New xml() object instantiated.
fetch() called.
XML error: Invalid document end at line 2
         Select * 
                FROM Scope('SHALLOW TRAVERSAL OF "/Exchange/spandey/calendar/"')
                WHERE NOT "urn:schemas:calendar:instancetype" = 1
                AND "DAV:contentclass" = 'urn:content-classes:appointment'
                ORDER BY "urn:schemas:calendar:dtstart" ASC

在这里 链接 它给出了前景快递的链接。为什么会这样?是配置问题还是我做错了什么?

欢迎任何帮助/建议。提前谢谢。

伙计们找到了问题区域,问题是用户存储在 2 个单独的交换帐户中,我只使用一个而不是另一个。