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

时间:2013-10-08 05:06:12

标签: php outlook

我正在使用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

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

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

1 个答案:

答案 0 :(得分:0)

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