Hi,
excuse me for posting this again in the developers group,
but I did not get an answer to this one in the users group.
I try to subscribe for getting events from an Exchange calendar
folder (MS Exchange 2003) using Slide version 2.1 beta 2
(tried it now with version 2.1 RC 1 - same result :().
Here is a code snippet of what I am trying (https disabled
on Exchange server for test purposes):
-----
String strUser = "test.user";
String strPassword = "password";
UsernamePasswordCredentials creds =
new UsernamePasswordCredentials( strUser, strPassword );
WebdavResource resource = new WebdavResource(
"http://ourexchangehost.de", creds );
// setup path for user's calendar folder
resource.setPath( "/exchange/" + strUser + "/Kalender" );
// ...
// I can read appointments now - works fine.
// So far so good...
// But then I try to subscribe for new member notifications in
// the calendar folder:
// (I suppose the constructor itself creates the UDP server
// listening on port 3500?)
NotificationListener nl = new NotificationListener( "localhost", 3500,
"ourexchangehost.de", 8080,
new Protocol( "http", new DefaultProtocolSocketFactory(), 8080 ),
creds, "/exchange/" + strUser + "/Kalender", 1, true );
// EventSubscriber is a small class implementing the "Subsciber"
// interface; the following line causes the error:
nl.subscribe( Subscription.NEW_MEMBER_NOTIFICATION,
resource.toString(),
DepthSupport.DEPTH_INFINITY,
3600,
1,
new EventSubscriber(),
creds );
//
// ...
//
resource.close();
-----
I get the following error message:
16.12.2004 17:27:50 org.apache.webdav.lib.NotificationListener subscribe
SCHWERWIEGEND: Subscription for
uri='http://ourexchangehost.de/exchange/test.user/Kalender' failed.
State: 404
State 404 means "Resouce not found", but I can get appointments from
that resource - it does definitely exist :) .
Does anyone have a clue what am I doing wrong?
Thanks for any help with this one.
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]