I'm not sure if this is the right forum, maybe my questions is more Exchange
specific. Please point me into the correct direction.
I'm building a ASP.NET web page that should display users availibility based
on the information in Exchange. Im using the freebusy method
(http://msdn.microsoft.com/library/de...tatus_http.asp)
which returns the freebusy information as XML(?).
My code looks like this:
string url =
"http://exserver/public/?cmd=freebusy&start=2005-05-11T06:00:00Z&end=2005-05-11T17:00:00Z&interval=15&u=smtp:th*****@domain.com ";
HttpWebRequest req = (HttpWebRequest) WebRequest.Create(url);
req.Method = "GET";
req.ContentType = "text/xml";
req.Credentials = new NetworkCredential(user, psw, domain);
HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
XmlTextReader reader = new XmlTextReader(resp.GetResponseStream());
XmlDocument doc = new XmlDocument();
doc.Load(reader);
When I execute the URL in IE, the response is displayed in the browser in
somehing that looks like XML. The problem is that this code fails on
doc.Load(reader), with the exception "The '0' character, hexadecimal value
0x30, cannot begin with a name".
I am suspecting that the XML excehange gives back isn't that well formatted,
but I'm not sure. I would really appreciate any help on this...