Hi Marco, apreciate the feedback but:

http://support.microsoft.com/kb/q296126/

...is regarding adding/deleting a contact, and doesn't have any
information the SUBSCRIBE method.

I'm able to connect and query details perfectly, what I'm trying to do
is subscribe to "update/newmember" on the calendar folder such that if
anyone adds or changes items in their calendar I'll be notified and can
update my data with a new query.

Everytime I try to issue a SUBSCRIBE my exchange server responds with
error 400 (Bad Request).

Does anyone have an example of working SUBSCRIBE code using the webDAV
client in slide?  That would let me know if the issue is in my code or
with the exchange server.

I've gone to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2
k3/_webdav_call_back_header.asp

...and tried their example which also give me error 400 so I'm guessing
it might have something to do with priviledges, but being so new to the
webDAV client I need to confirm that it's not something in my code.

THANKS!
-Zac Morris





-----Original Message-----
From: Marco Ferretti [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 5:10 AM
To: Slide Users Mailing List
Subject: Re: Question regarding webDAV client and Subscription

On 8/26/06, Zac Morris (zmorris) <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
> I'm working on a project trying to do a webDAV "update" subscription 
> to an MS Exchange calendar folder (so if anyone has a working example 
> of doing this with the Slide - webDAV client that would be very
helpful!).
>
> I've tried lots of different ways to instantiate a subscription but 
> I'm always getting back error code 400 (Bad Request).
>
> Can anyone give me some advice?
>
> Thanks!
> -Zac Morris
>
>  ________________________________
>
>
> When I run the below I get an error code 400 in sub:
> HttpURL url    = null;
> String server_prot  = "http";
> String server       = "exchange.foo.com";
> String path         = server_prot+"://"+server+path;
> if (server_prot.equals("https")){
> url = new HttpsURL(path);
> } else {
> url = new HttpURL(path);
> }
> url.setUserinfo((gen_domain!=null?gen_domain+"\\":"")+gen_userID,gen_p
> ass); WebdavResource rc = new WebdavResource(url,true); 
> SubscribeMethod sub = new SubscribeMethod(path); 
> sub.setCallback("http://"+InetAddress.getLocalHost().getHostAddress()+
> "/index.html");
> sub.setNotificationDelay(1);
> sub.setDepth(1);
> sub.setNotificationType(Subscription.UPDATE_NOTIFICATION);
> sub.setSubsciptionLifetime(300);
> sub.setDebug(1);
> rc.executeHttpRequestMethod(rc.getSessionInstance(url),sub);
> Enumeration e = sub.getResponses();
> while (e.hasMoreElements()){
> System.out.println(e.nextElement());
> }
>
>

Hi Zac,

this should give you some hints :
http://support.microsoft.com/kb/q296126/

I know it's vb code, but it's quite readable and should tell you how to
use client's api to connect to exchange .


hope it helps


Marco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to