You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Xiaobo Yang <xi...@gmail.com> on 2005/12/22 11:43:24 UTC
could not get "urn:schemas:httpmail:sendmsg" from exchange 2003
Hi, I tried to query "urn:schemas:httpmail:sendmsg" from the ms exchange
server 2003, but failed. Could anybody have a look what's wrong with my
code? Thanks.
Xiaobo Yang
Vector v = new Vector();
v.add(new PropertyName("urn:schemas:httpmail:", "sendmsg"));
// v.add(new PropertyName("urn:schemas:httpmail:", "inbox"));
PropFindMethod pfm = new PropFindMethod(sFolderUrl, 0,
v.elements());
int iStatusCode = httpClient.executeMethod(pfm);
The WebdavResource is ".../exchange/useralias". The http request and
response information are as below. Is there anything wrong with my request
body?
[java] >>>>>>> to server
---------------------------------------------------
[java] PROPFIND /exchange/xy39 HTTP/1.1
[java] Authorization: Basic XXXXXX
[java] Content-Type: text/xml; charset=utf-8
[java] User-Agent: Jakarta Commons-HttpClient/3.0
[java] Host: www.exchange.dl.ac.uk
[java] Depth: 0
[java] Content-Length: 142
[java] Depth: 0
[java] <D:propfind xmlns:D="DAV:">
[java] <D:prop>
[java] <ZZ:sendmsg xmlns:ZZ="urn:schemas:httpmail:">
[java] </ZZ:sendmsg>
[java] </D:prop>
[java] </D:propfind>
[java]
------------------------------------------------------------------------
[java] <<<<<<< from server
---------------------------------------------------
[java] HTTP/1.1 207 Multi-Status
[java] Content-Length: 4387
[java] Date: Thu, 22 Dec 2005 10:26:22 GMT
[java] Content-Type: text/xml
[java] Server: Microsoft-IIS/6.0
[java] X-Powered-By: ASP.NET
[java] Accept-Ranges: rows
[java] MS-WebStorage: 6.5.7226
[java] MS-WebStorage: 6.5.7226
[java] X-Powered-By: ASP.NET
[java] <a:multistatus
[java] xmlns:a="DAV:"
[java] xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
[java] xmlns:c="xml:"
[java] xmlns:d="http://schemas.microsoft.com/exchange/"
[java] xmlns:e="urn:schemas-microsoft-com:exch-data:"
[java] xmlns:f="urn:schemas-microsoft-com:office:office"
[java] xmlns:g="http://schemas.microsoft.com/repl/"
[java] xmlns:h="urn:schemas:httpmail:">
[java] <a:response>
[java] <a:href>
[java] https://www.exchange.dl.ac.uk/exchange/xy39/
[java] </a:href>
[java] <a:propstat>
[java] <a:status>
[java] HTTP/1.1 200 OK
[java] </a:status>
[java] <a:prop>
[java] <a:nosubs b:dt="boolean">
[java] 0
[java] </a:nosubs>
[java] <a:contentclass>
[java] urn:content-classes:folder
[java] </a:contentclass>
[java] <d:composefontsize b:dt="int">
[java] 2
[java] </d:composefontsize>
[java] <d:workdayendtime b:dt="int">
[java] 1020
[java] </d:workdayendtime>
[java] <d:autoaddsignature b:dt="boolean">
[java] 0
......