dkv 0 Newbie Poster

I want to query exchange server through my php script. I downloaded class_http.php and class_xml.php. I am trying to run the example php script to find all the folders in the inbox for a user named 'twolf'.

I changed the following parameters as follows:
$exchange_server = "http://mail.msm.edu";
$exchange_username = "dkv@msm.edu";
$exchange_password = "abcdef";

I also changed 'twolf' to 'dkv' a valid user.

I get the following error, pleas help debig my problem. Thankyou in advance.

"
There was a problem parsing your XML!
New http() object instantiated.
--------------------------------fetch() called
url: http://mail.msm.edu/Exchange/twolf/inbox
getFromUrl() calledAuthentication will be attempted
XML request will be sent


--------------------------------------------------------------------------------

HTTP/1.1 302 Object moved
Connection: close
Date: Sun, 29 Jun 2008 20:49:20 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Location: https://mail.msm.edu/exchange
Content-Length: 150
Content-Type: text/html
Set-Cookie: ASPSESSIONIDSSQDCQAC=JDHOBPEBBLFFBBBLDNAMPLDK; path=/
Cache-control: private


--------------------------------------------------------------------------------


Object MovedThis object may be found here.


--------------------------------------------------------------------------------

New xml() object instantiated.
fetch() called.
XML error: Invalid document end at line 2
"

Thanks,

Dkv

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.