Hello mailing list,
I try to access a MS Exchange server via WebDAV and I´m not very
experienced with both.
I did connect to a acount ressource. Then I did want to see what is
inside of it by the method WebdavResource.list().
The result just contains one entry "testperson" but I did expect as
displayed in the debug message 12 etries (Junk-E-Mail,
Synchronisierungsprobleme ...).
BTW: Does anybody know a knowledge resource of WebDAV in Exchange?
Greetings
Eric
===================================================
the code:
String davUrl = "http://192.168.1.156/exchange";
String user = "testperson";
String password = "test";
String userDavUrl = davUrl+"/"+user;
try {
HttpURL hrl = new HttpURL(userDavUrl);
hrl.setUserinfo( user, password);
WebdavResource wdr = new WebdavResource(hrl);
wdr.setDebug(1);
if (wdr.exists()) {
LOGGER.info("resource exists");
}
String[] list = wdr.list();
for (int i = 0; i < list.length; i++) {
LOGGER.info(i+" - "+list[i]);
}
===================================================
the debug output:
>>>>>>> to server ---------------------------------------------------
PROPFIND /exchange/testperson HTTP/1.1
Authorization: Basic dGVzdHBlcnNvbjp0ZXN0
Content-Type: text/xml; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/2.0final
Host: 192.168.1.156
Content-Length: 112
Depth: 1
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:displayname>
</D:displayname>
</D:prop>
</D:propfind>
------------------------------------------------------------------------
<<<<<<< from server ---------------------------------------------------
HTTP/1.1 207 Multistatus
Server: Microsoft-IIS/5.0
Date: Wed, 24 May 2006 06:21:52 GMT
X-Powered-By: ASP.NET
Content-Type: text/xml
Accept-Ranges: rows
MS-WebStorage: 6.5.6944
Transfer-Encoding: chunked
<a:multistatus
xmlns:a="DAV:"
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:">
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
testperson
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Junk-E-Mail/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Junk-E-Mail
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Synchronisierungsprobleme/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Synchronisierungsprobleme
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Aufgaben/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Aufgaben
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Entw%C3%BCrfe/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Entwürfe
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Journal/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Journal
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Notizen/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Notizen
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Kalender/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Kalender
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Kontakte/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Kontakte
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Gel%C3%B6schte%20Objekte/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Gelöschte Objekte
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Postausgang/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Postausgang
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Gesendete%20Objekte/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Gesendete Objekte
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
<a:response>
<a:href>
http://192.168.1.156/exchange/testperson/Posteingang/
</a:href>
<a:propstat>
<a:status>
HTTP/1.1 200 OK
</a:status>
<a:prop>
<a:displayname>
Posteingang
</a:displayname>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]