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 Clemens Eisserer <li...@gmail.com> on 2006/01/30 22:51:50 UTC

[Profind] Troubles selecting only the right properties.

Hi there,

Although I am not using slide directly I hope you can help me since it
seems WebDAV knowledge is not very widespread and I was not able to
find any answer for my question.

I ask ms-exchange with the following request: 		
String strAppRequest =  "<?xml version=\"1.0\" encoding=\"utf-8\"
?><D:propfind xmlns:D=\"DAV:\"
xmlns:b=\"http://schemas.microsoft.com/mapi/proptag/\"><D:allprop
/></D:propfind>";

but of course I get tons of information I don't need at all, the only
stuff which would be interresting for me would be the <a:href> or the
<a:displayname>-tag of every calendar entry (file).
I tried various combinations but always got "400 - bad formatted request" :(

Any ideas how I could avoid the tons of (for me) unuseful properties
with setting the for me interresting stuff in the request?

Thank you in adance, lg Clemens

Disclaimer: I hate MS-Exchange myself I just have to do it. I am
against proprietary "standards" and I#ve not written a single line
win32-code. So please don't treat me like it should be done ;)

This is the complete response I get back from exchange:
<?xml version="1.0"?><a:multistatus
xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:e="urn:schemas:httpmail:" xmlns:j="urn:schemas:mailheader:"
xmlns:c="xml:" xmlns:f="http://schemas.microsoft.com/exchange/"
xmlns:i="urn:schemas-microsoft-com:office:office"
xmlns:k="http://schemas.microsoft.com/repl/"
xmlns:d="urn:schemas:calendar:" xmlns:g="urn:schemas:contacts:"
xmlns:h="urn:schemas-microsoft-com:exch-data:"
xmlns:a="DAV:"><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><a:nosubs
b:dt="boolean">0</a:nosubs><a:contentclass>urn:content-classes:calendarfolder</a:contentclass><f:outlookfolderclass>IPF.Appointment</f:outlookfolderclass><a:supportedlock><lockentry
xmlns="DAV:"><locktype><transaction><groupoperation/></transaction></locktype><lockscope><local/></lockscope></lockentry></a:supportedlock><f:permanenturl>https://10.0.0.5/exchange/user2/-FlatUrlSpace-/bd70cf45527a1e409b3241ab02935e6f-1f73</f:permanenturl><a:id>AQEAAAAAAB9zAAAAAAAAAAAAAAAA</a:id><f:mid
b:dt="i8">-5610359235796795391</f:mid><a:isfolder
b:dt="boolean">1</a:isfolder><a:resourcetype><a:collection/></a:resourcetype><f:foldersize
b:dt="int">3859</f:foldersize><lockdiscovery
xmlns="DAV:"></lockdiscovery><a:creationdate
b:dt="dateTime.tz">2005-06-10T16:50:45.671Z</a:creationdate><f:ntsecuritydescriptor
b:dt="bin.base64">CAAEAAAAAAABAASMsAAAALwAAAAAAAAAFAAAAAIAnAAFAAAAAAkkAL8PHwABBQAAAAAABRUAAABc26gk/yhJw+zsZuhdBAAAAAIkAKsIEgABBQAAAAAABRUAAABc26gk/yhJw+zsZuhdBAAAAQIkABTJDQABBQAAAAAABRUAAABc26gk/yhJw+zsZuhdBAAAARkUAL8PHwABAQAAAAAABQcAAAABEhQAv8kfAAEBAAAAAAAFBwAAAAEBAAAAAAAFEgAAAAECAAAAAAAFIAAAACACAAA=</f:ntsecuritydescriptor><a:ishidden
b:dt="boolean">0</a:ishidden><a:parentname>https://10.0.0.5/exchange/user2/</a:parentname><a:getcontentlength
b:dt="int">0</a:getcontentlength><k:contenttag
b:dt="dateTime.tz">2005-06-15T09:33:08.078Z</k:contenttag><a:objectcount
b:dt="int">2</a:objectcount><a:isstructureddocument
b:dt="boolean">0</a:isstructureddocument><k:repl-uid>rid:bd70cf45527a1e409b3241ab02935e6f0000000024b2</k:repl-uid><a:comment></a:comment><a:haschildren
b:dt="boolean">1</a:haschildren><a:displayname>Kalender</a:displayname><a:href>https://10.0.0.5/exchange/user2/Kalender/</a:href><a:isreadonly
b:dt="boolean">0</a:isreadonly><a:uid>AQEAAAAAAB9zAAAAAAAAAAAAAAAA</a:uid><a:visiblecount
b:dt="int">2</a:visiblecount><a:getlastmodified
b:dt="dateTime.tz">2005-06-16T11:13:59.593Z</a:getlastmodified><a:hassubs
b:dt="boolean">0</a:hassubs><e:unreadcount
b:dt="int">0</e:unreadcount><a:iscollection
b:dt="boolean">1</a:iscollection><a:childcount
b:dt="int">2</a:childcount><k:resourcetag>rt:bd70cf45527a1e409b3241ab02935e6f0000000024b2bd70cf45527a1e409b3241ab02935e6f000000004d60</k:resourcetag></a:prop></a:propstat></a:response><a:response><a:href>https://10.0.0.5/exchange/user2/Kalender/{144246DB-94E9-46E8-981E-BEACB7A2012F}.EML</a:href><a:propstat><a:status>HTTP/1.1
200 OK</a:status><a:prop><d:alldayevent
b:dt="boolean">0</d:alldayevent><e:textdescription>
ewtwefwewe
</e:textdescription><a:contentclass>urn:content-classes:appointment</a:contentclass><a:supportedlock><lockentry
xmlns="DAV:"><locktype><transaction><groupoperation/></transaction></locktype><lockscope><local/></lockscope></lockentry></a:supportedlock><d:busystatus>BUSY</d:busystatus><d:transparent>OPAQUE</d:transparent><f:permanenturl>https://10.0.0.5/exchange/user2/-FlatUrlSpace-/bd70cf45527a1e409b3241ab02935e6f-1f73/bd70cf45527a1e409b3241ab02935e6f-2867</f:permanenturl><a:getcontenttype>message/rfc822</a:getcontenttype><a:id>AQEAAAAAAB9zAQAAAAAAKGcAAAAA</a:id><f:mid
b:dt="i8">7433191184975003649</f:mid><d:uid>{2A634566-D857-498A-B0DD-D44648CEA3ED}</d:uid><a:isfolder
b:dt="boolean">0</a:isfolder><a:resourcetype/><d:method>REQUEST</d:method><a:getetag>"bd70cf45527a1e409b3241ab02935e6f0000000062c7"</a:getetag><lockdiscovery
xmlns="DAV:"></lockdiscovery><f:outlookmessageclass>IPM.Appointment</f:outlookmessageclass><a:creationdate
b:dt="dateTime.tz">2005-06-15T09:33:01.750Z</a:creationdate><f:ntsecuritydescriptor
b:dt="bin.base64">CAAEAAAAAAABAC+MVAAAAGAAAAAAAAAAFAAAAAIAQAACAAAAABAkAL8PHwABBQAAAAAABRUAAABc26gk/yhJw+zsZuhdBAAAARAUAL8PHwABAQAAAAAABQcAAAABAQAAAAAABRIAAAABAgAAAAAABSAAAAAgAgAA</f:ntsecuritydescriptor><d:dtstamp
b:dt="dateTime.tz">2005-06-15T09:33:02.000Z</d:dtstamp><d:lastmodified
b:dt="dateTime.tz">2005-06-15T09:33:08.000Z</d:lastmodified><d:dtstart
b:dt="dateTime.tz">2005-06-15T10:00:00.000Z</d:dtstart><d:location></d:location><j:subject>PalmeAppointment!!</j:subject><d:duration
b:dt="int">2593800</d:duration><e:htmldescription>&lt;!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 3.2//EN"&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"&gt;
&lt;META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0"&gt;
&lt;TITLE&gt;PalmeAppointment!!&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;
&lt;BR&gt;

&lt;P&gt;&lt;FONT SIZE=2&gt;ewtwefwewe&lt;BR&gt;
&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</e:htmldescription><a:ishidden
b:dt="boolean">0</a:ishidden><a:parentname>https://10.0.0.5/exchange/user2/Kalender/</a:parentname><d:meetingstatus>TENTATIVE</d:meetingstatus><e:subject>PalmeAppointment!!</e:subject><a:getcontentlength
b:dt="int">3029</a:getcontentlength><e:normalizedsubject>PalmeAppointment!!</e:normalizedsubject><a:isstructureddocument
b:dt="boolean">0</a:isstructureddocument><k:repl-uid>rid:bd70cf45527a1e409b3241ab02935e6f000000002867</k:repl-uid><d:timezoneid
b:dt="int">13</d:timezoneid><d:reminderoffset
b:dt="int">900</d:reminderoffset><a:displayname>{144246DB-94E9-46E8-981E-BEACB7A2012F}.EML</a:displayname><a:href>https://10.0.0.5/exchange/user2/Kalender/{144246DB-94E9-46E8-981E-BEACB7A2012F}.EML</a:href><a:isreadonly
b:dt="boolean">0</a:isreadonly><d:instancetype
b:dt="int">0</d:instancetype><a:uid>AQEAAAAAAChnAAAAAAAAAAAAAAAA</a:uid><a:getlastmodified
b:dt="dateTime.tz">2005-06-15T09:33:08.078Z</a:getlastmodified><d:created
b:dt="dateTime.tz">2005-06-15T09:33:02.000Z</d:created><f:sensitivity
b:dt="int">0</f:sensitivity><d:dtend
b:dt="dateTime.tz">2005-07-15T10:30:00.000Z</d:dtend><e:hasattachment
b:dt="boolean">0</e:hasattachment><a:iscollection
b:dt="boolean">0</a:iscollection><e:read
b:dt="boolean">1</e:read><k:resourcetag>rt:bd70cf45527a1e409b3241ab02935e6f000000002867bd70cf45527a1e409b3241ab02935e6f0000000062c7</k:resourcetag><e:priority
b:dt="int">0</e:priority><d:sequence
b:dt="int">1</d:sequence></a:prop></a:propstat></a:response></a:multistatus>
Dauer: 3408

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: [Profind] Troubles selecting only the right properties.

Posted by Julian Reschke <ju...@gmx.de>.
...where DAV:href in fact isn't a WebDAV property at all (so a compliant 
server will return it under propstat/404).

Best regards, Julian

Mark Fox wrote:
> "allprop" is going to give you them all. As Julian mentions try prop specifying the properties you would like to see. In your example you could specify something like this in the propfind xml:
> <D:propfind xmlns:D="DAV:" xmlns:b="http://schemas.microsoft.com/mapi/proptag/">
>    <D:prop>
> 	<D:href/>
> 	<D:displayname/>
>    <D:prop/>
> </D:propfind>"
> 
> -----Original Message-----
> From: Julian Reschke [mailto:julian.reschke@gmx.de]
> Sent: Tuesday, January 31, 2006 12:02 AM
> To: Slide Users Mailing List
> Subject: Re: [Profind] Troubles selecting only the right properties.
> 
> 
> Clemens Eisserer wrote:
>> Hi there,
>>
>> Although I am not using slide directly I hope you can help me since it
>> seems WebDAV knowledge is not very widespread and I was not able to
>> find any answer for my question.
>>
>> I ask ms-exchange with the following request:
>> String strAppRequest =  "<?xml version=\"1.0\" encoding=\"utf-8\"
>> ?><D:propfind xmlns:D=\"DAV:\"
>> xmlns:b=\"http://schemas.microsoft.com/mapi/proptag/\"><D:allprop
>> /></D:propfind>";
>>
>> but of course I get tons of information I don't need at all, the only
>> stuff which would be interresting for me would be the <a:href> or the
>> <a:displayname>-tag of every calendar entry (file).
>> I tried various combinations but always got "400 - bad formatted request" :(
>>
>> Any ideas how I could avoid the tons of (for me) unuseful properties
>> with setting the for me interresting stuff in the request?
>>
>> Thank you in adance, lg Clemens
>> ...
> 
> 
> Did you try propfind/prop, as in
> <http://greenbytes.de/tech/webdav/rfc2518.html#rfc.section.8.1.1>?
> 
> Best regards, Julian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


RE: [Profind] Troubles selecting only the right properties.

Posted by Mark Fox <ma...@oracle.com>.
"allprop" is going to give you them all. As Julian mentions try prop specifying the properties you would like to see. In your example you could specify something like this in the propfind xml:
<D:propfind xmlns:D="DAV:" xmlns:b="http://schemas.microsoft.com/mapi/proptag/">
   <D:prop>
	<D:href/>
	<D:displayname/>
   <D:prop/>
</D:propfind>"

-----Original Message-----
From: Julian Reschke [mailto:julian.reschke@gmx.de]
Sent: Tuesday, January 31, 2006 12:02 AM
To: Slide Users Mailing List
Subject: Re: [Profind] Troubles selecting only the right properties.


Clemens Eisserer wrote:
> Hi there,
>
> Although I am not using slide directly I hope you can help me since it
> seems WebDAV knowledge is not very widespread and I was not able to
> find any answer for my question.
>
> I ask ms-exchange with the following request:
> String strAppRequest =  "<?xml version=\"1.0\" encoding=\"utf-8\"
> ?><D:propfind xmlns:D=\"DAV:\"
> xmlns:b=\"http://schemas.microsoft.com/mapi/proptag/\"><D:allprop
> /></D:propfind>";
>
> but of course I get tons of information I don't need at all, the only
> stuff which would be interresting for me would be the <a:href> or the
> <a:displayname>-tag of every calendar entry (file).
> I tried various combinations but always got "400 - bad formatted request" :(
>
> Any ideas how I could avoid the tons of (for me) unuseful properties
> with setting the for me interresting stuff in the request?
>
> Thank you in adance, lg Clemens
> ...


Did you try propfind/prop, as in
<http://greenbytes.de/tech/webdav/rfc2518.html#rfc.section.8.1.1>?

Best regards, Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: [Profind] Troubles selecting only the right properties.

Posted by Julian Reschke <ju...@gmx.de>.
Clemens Eisserer wrote:
> Hi there,
> 
> Although I am not using slide directly I hope you can help me since it
> seems WebDAV knowledge is not very widespread and I was not able to
> find any answer for my question.
> 
> I ask ms-exchange with the following request: 		
> String strAppRequest =  "<?xml version=\"1.0\" encoding=\"utf-8\"
> ?><D:propfind xmlns:D=\"DAV:\"
> xmlns:b=\"http://schemas.microsoft.com/mapi/proptag/\"><D:allprop
> /></D:propfind>";
> 
> but of course I get tons of information I don't need at all, the only
> stuff which would be interresting for me would be the <a:href> or the
> <a:displayname>-tag of every calendar entry (file).
> I tried various combinations but always got "400 - bad formatted request" :(
> 
> Any ideas how I could avoid the tons of (for me) unuseful properties
> with setting the for me interresting stuff in the request?
> 
> Thank you in adance, lg Clemens
> ...


Did you try propfind/prop, as in 
<http://greenbytes.de/tech/webdav/rfc2518.html#rfc.section.8.1.1>?

Best regards, Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org