Re: Problems with FreeBusy XML

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello,

perhaps this helps you:
http://www.infinitec.de/exchange/howtos/getfreebusydata.aspx

Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


"FredrikT" <FredrikT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:33129E38-3A08-4CB3-822A-35AC6B618158@xxxxxxxxxxxxxxxx
> Hi,
>
> thanks for your answer, but it doesn't look like it solves my problem. It
> looks like the ResponseStream doesn't contain any data when I use
> Translate,
> F.
>
> "Henning Krause [MVP]" wrote:
>
>> Hello,
>>
>> try to add a Translate: f header to your request.
>>
>> Greetings,
>> Henning Krause [MVP]
>> ==========================
>> Visit my website: http://www.infinitec.de
>> Try my free Exchange Explorer: Mistaya
>> (http://www.infinitec.de/software/mistaya.aspx)
>>
>>
>> "FredrikT" <FredrikT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:7AE9B86E-E26F-4831-A42E-86B16137F41A@xxxxxxxxxxxxxxxx
>> > I'm building an ASP.NET web page that should display users calendar
>> > availibility. Im using the FreeBusy method over HTTP
>> > (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_esdk_checking_free_busy_status_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:theuser@xxxxxxxxxx";;
>> >
>> > HttpWebRequest req = (HttpWebRequest) WebRequest.Create(url);
>> > req.Method = "GET";
>> > req.ContentType = "text/xml";
>> >
>> > HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
>> >
>> > XmlTextReader reader = new XmlTextReader(resp.GetResponseStream());
>> >
>> > XmlDocument doc = new XmlDocument();
>> > doc.Load(reader);
>> >
>> > The code fails on doc.Load(reader). I think the reason for this is that
>> > resp.ContentType is "text/html", and you can't set that (as far as I
>> > know). I
>> > have managed to save the response to a file as plain text, and as
>> > suspected
>> > that includes all the Html.
>> >
>> > I have tried this code on another url that gives xml back (for example
>> > a
>> > rss
>> > feed) and that works fine. And for that response, the ContentType is
>> > "text/xml".
>> >
>> > Also, I get the VBScript in from MSDN (link above) to work.
>> >
>> > Anyone has experience on how to handle the XML that is returned from
>> > Exchange?
>> >
>> >
>>
>>
>>


.



Relevant Pages

  • Re: Getting EntryID from WebDAV
    ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ... > Ahh, it works a little differently from SQL then. ...
    (microsoft.public.exchange.applications)
  • Re: Workflow-Problem, WebDAV?
    ... Henning Krause ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
    (microsoft.public.exchange2000.development)
  • Re: Info about user account in which current process is running
    ... Henning Krause ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
    (microsoft.public.dotnet.security)
  • Re: Encode message body?!
    ... Henning Krause [MVP] ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
    (microsoft.public.exchange.development)
  • Re: WebDAV and Form-Based Authentication
    ... If I don't monitor the traffic, no cookies get returned. ... > Try my free Exchange Explorer: Mistaya ...
    (microsoft.public.exchange.development)