| Author |
Message |
George Durzi
Guest
|
Posted:
Wed Nov 17, 2004 12:34 am Post subject:
What's wrong with this WebDAV Request? |
|
|
If I use this WebDAV request to extract one property from Contact, it works
ok.
<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/">
<a:prop>
<b:givenName/>
</a:prop>
</a:propfind>
However, I'd like to use <allprop/> instead of actually manually writing
each property into the request. When my request looks like this, I get a 401
(Bad Request) exception.
<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/">
<b:allprop/>
</a:propfind>
What am I doing wrong? Thank you
|
|
| Back to top |
|
 |
Henning Krause [MVP]
Guest
|
Posted:
Wed Nov 17, 2004 1:29 pm Post subject:
Re: What's wrong with this WebDAV Request? |
|
|
Hello,
try
<D:propfind xmlns:D="DAV:" xmlns:E="http://schemas.microsoft.com/exchange/">
<D:allprop>
<E:allprop />
</D:allprop>
</D:propfind>
That should give you most properties.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/?page=products)
"George Durzi" <gdurzi@hotmail.com> wrote in message
news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
| Quote: | If I use this WebDAV request to extract one property from Contact, it
works
ok.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
a:prop
b:givenName/
/a:prop
/a:propfind
However, I'd like to use <allprop/> instead of actually manually writing
each property into the request. When my request looks like this, I get a
401
(Bad Request) exception.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
b:allprop/
/a:propfind
What am I doing wrong? Thank you
|
|
|
| Back to top |
|
 |
George Durzi
Guest
|
Posted:
Wed Nov 17, 2004 11:07 pm Post subject:
Re: What's wrong with this WebDAV Request? |
|
|
Henning,
Thank you, this works great.
Would you mind explaining how this request actually works?
"Henning Krause [MVP]" <newsgroup.no@spam.infinitec.de> wrote in message
news:eGCaAdHzEHA.3908@TK2MSFTNGP12.phx.gbl...
| Quote: | Hello,
try
D:propfind xmlns:D="DAV:"
xmlns:E="http://schemas.microsoft.com/exchange/"
D:allprop
E:allprop /
/D:allprop
/D:propfind
That should give you most properties.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/?page=products)
"George Durzi" <gdurzi@hotmail.com> wrote in message
news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
If I use this WebDAV request to extract one property from Contact, it
works
ok.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
a:prop
b:givenName/
/a:prop
/a:propfind
However, I'd like to use <allprop/> instead of actually manually writing
each property into the request. When my request looks like this, I get a
401
(Bad Request) exception.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
b:allprop/
/a:propfind
What am I doing wrong? Thank you
|
|
|
| Back to top |
|
 |
Henning Krause [MVP]
Guest
|
Posted:
Thu Nov 18, 2004 12:08 am Post subject:
Re: What's wrong with this WebDAV Request? |
|
|
Hello,
well, the <D:allprop> tag tells the Exchange server to return all common
properties as well as all properties that belong to the schema-class of the
item.
The <E:allprop> tells the server to return a subset of the MAPI properties
as well.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/?page=products)
"George Durzi" <gdurzi@hotmail.com> wrote in message
news:#f98efMzEHA.1392@tk2msftngp13.phx.gbl...
| Quote: | Henning,
Thank you, this works great.
Would you mind explaining how this request actually works?
"Henning Krause [MVP]" <newsgroup.no@spam.infinitec.de> wrote in message
news:eGCaAdHzEHA.3908@TK2MSFTNGP12.phx.gbl...
Hello,
try
D:propfind xmlns:D="DAV:"
xmlns:E="http://schemas.microsoft.com/exchange/"
D:allprop
E:allprop /
/D:allprop
/D:propfind
That should give you most properties.
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/?page=products)
"George Durzi" <gdurzi@hotmail.com> wrote in message
news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
If I use this WebDAV request to extract one property from Contact, it
works
ok.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
a:prop
b:givenName/
/a:prop
/a:propfind
However, I'd like to use <allprop/> instead of actually manually
writing
each property into the request. When my request looks like this, I get
a
401
(Bad Request) exception.
?xml version="1.0"?
a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
xmlns:d="http://schemas.microsoft.com/mapi/"
b:allprop/
/a:propfind
What am I doing wrong? Thank you
|
|
|
| Back to top |
|
 |
|
|
|
|