Re: Folder Details
- From: "Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m>
- Date: Fri, 22 Jun 2007 13:25:43 +0100
It's hard to say why you are getting Resource Not Found without seeing the
full Response. It may just be a single property that can't be found, or the
entire folder. Also, can't say why you only get properties of child items
without seeing more of the code. The Depth header of "1" should work, as
long as you aren't also setting "noroot". Basically, we need to see the
full Response.
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9C6C1178-89BE-4BBE-AD3A-925F6E2AEA0A@xxxxxxxxxxxxxxxx
Hi Lee,
The problem was related to bad request and fixed the XML but not
completely
working fine for me
I begin with sample code from Microsoft and I noticed that when I request
to
get details, I get details of subfolders only. I am not getting the
details
of the requested folder. which is not the case with propFind.
I tried to create a SQL to get more complicated datas like security
descriptor, Folder size but getting resource not found error.
the propfind query is given below ,which is working fine.
<?xml version='1.0'?>
<d:propfind xmlns:d='DAV:'
xmlns:s='http://schemas.microsoft.com/exchange/security/'
xmlns:E='http://schemas.microsoft.com/mapi/proptag/'
xmlns:f='http://schemas.microsoft.com/exchange/'>
<d:prop>
<E:x0e080014 />
<s:descriptor/>
<d:contentclass/>
<d:isfolder/>
<d:hassubs/>
<d:displayname/>
<d:getlastmodified/>
<d:creationdate/>
<d:childcount/>
<f:permanenturl/>
<d:objectcount/>
</d:prop>
</d:propfind>
I created equvalent search query for the same but it seems the namspace is
not catching correctly. Please help me on this query - getting resource
not
found error
string sqlQuery = "<?xml version=\"1.0\"?><D:searchrequest xmlns:D =
\"DAV:\" xmlns:s=\"http://schemas.microsoft.com/exchange/security/\"
xmlns:E=\"http://schemas.microsoft.com/mapi/proptag/\"
xmlns:f=\"http://schemas.microsoft.com/exchange/\" ><D:sql>SELECT
\"d:displayname\",\"d:getlastmodified\",\"d:creationdate\" FROM
\""+stringFolderPath ;
sqlQuery = sqlQuery +"\" WHERE \"DAV:isfolder\" = true
</D:sql></D:searchrequest>"
Thanks
Rajesh
"Henning Krause [MVP - Exchange]" wrote:
Hello,
the /Exadmin dir is quite useful. Some properties (like replication
settings
of public folders) can only be set/retrieved using that folder. Not to
mention it completely circumvents MAPI security settings applied to the
folder :-)
But you must be an administrator to use the folder.
Considering the url
Http://ExchangeServer1/Exadmin/admin/Server.EUR.COM/PUBLIC%20FOLDERS/Rajesh%20Folder/
Server.EUR.COM must be the primary SMTP domain of the Exchange
organization.
Best regards,
Henning Krause
"Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m> wrote in
message news:OkE2tazsHHA.4572@xxxxxxxxxxxxxxxxxxxxxxx
I think the location is wrong (at least, I've never seen one sent to
/Exadmin before). Try something like this:
\"Http://ExchangeServer1/Public/Rajesh%20Folder/\"
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44DC2006-0F64-46ED-8814-CF680B9605BE@xxxxxxxxxxxxxxxx
sorry, corrext query is
"\"<?xml version=\"1.0\"?><D:searchrequest xmlns:D =
\"DAV:\"><D:sql>SELECT
\"DAV:displayname\" FROM
\"Http://ExchangeServer1/Exadmin/admin/Server.EUR.COM/PUBLIC%20FOLDERS/Rajesh%20Folder/\"
WHERE \"DAV:isfolder\" = true </D:sql></D:searchrequest>"
"Raj" wrote:
Hi Lee,
Thank you for the link
I used the sample code from the link to test but I am getting null
ResponseStream.
this my query string
"\"<?xml version=\"1.0\"?><D:searchrequest xmlns:D =
\"DAV:\"><D:sql>SELECT
\"DAV:displayname\" FROM
\"Http://ExchangeServer1/Exadmin/admin/Server.EUR.COM/PUBLIC%20FOLDERS/Rajesh%20Folder/\"
WHERE \"DAV:isfolder\" = false </D:sql></D:searchrequest>"
I set Request Method to 'Search' as well.
Thank you
Rajesh
"Lee Derbyshire [MVP]" wrote:
Here's one on MSDN.
http://msdn2.microsoft.com/en-us/library/aa123571.aspx
Note that you will need "DAV:isfolder" = true , since your are
looking
for
folder properties. The XML returned is very similar to what you
already
getting.
Lee.
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EEB97B2F-42D4-487B-AB35-CF306AC614BA@xxxxxxxxxxxxxxxx
Hi Lee,
If that so, Could you please send me a sample query?
Will that change will return different xml file? - I dont want to
change
the
XML parser.
Thanks
Rajesh
"Lee Derbyshire [MVP]" wrote:
In that case, you'll need to do a SEARCH instead of a PROPFIND .
With a
SEARCH, you can specify that you only want the properties of
folders.
Lee.
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EFD6410A-13F5-4B03-B37A-94D2521E4B12@xxxxxxxxxxxxxxxx
Hi Lee,
Thanks for the response. I am setting Depth Header to '1'
becuase
I
want
to
get details of all subfolders.
Thanks
Rajesh
"Lee Derbyshire [MVP]" wrote:
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BED0BC95-0429-4374-B2CB-F4BE5C87D897@xxxxxxxxxxxxxxxx
Hi All,
I am using WebDav technology to get public folder detail -
this
include
folder and subfolders. But the XML I received from exchange
also
contain
'message' detail as well so that XML is very very big. How
do
I
eliminate
the
'message' detail from the recieved XML? I just want folder
details.
Following
is the query I used to get folder details.
<?xml version='1.0'?><d:propfind xmlns:d='DAV:'
xmlns:s='http://schemas.microsoft.com/exchange/security/'
xmlns:E='http://schemas.microsoft.com/mapi/proptag/'
xmlns:f='http://schemas.microsoft.com/exchange/'><d:prop><E:x0e080014
/>
<s:descriptor/><d:contentclass/><d:isfolder/><d:hassubs/><d:displayname/>
<d:getlastmodified/><d:creationdate/><d:childcount/><f:permanenturl/><d:objectcount/></d:prop></d:propfind>
Thanks
Rajesh
Are you adding a Depth header to the request? Make sure that
it
is
set
to 0
..
Lee.
--
______________________________________
Outlook Web Access For PDA , OWA For WAP
www.leederbyshire.com
email a@t leederbyshire d.0.t c.0.m
______________________________________
.
- Follow-Ups:
- Re: Folder Details
- From: Raj
- Re: Folder Details
- References:
- Re: Folder Details
- From: Lee Derbyshire [MVP]
- Re: Folder Details
- From: Lee Derbyshire [MVP]
- Re: Folder Details
- From: Raj
- Re: Folder Details
- From: Lee Derbyshire [MVP]
- Re: Folder Details
- From: Raj
- Re: Folder Details
- From: Raj
- Re: Folder Details
- From: Lee Derbyshire [MVP]
- Re: Folder Details
- From: Henning Krause [MVP - Exchange]
- Re: Folder Details
- From: Raj
- Re: Folder Details
- Prev by Date: Re: access personal contact get 409 Error
- Next by Date: Re: Folder Details
- Previous by thread: Re: Folder Details
- Next by thread: Re: Folder Details
- Index(es):
Relevant Pages
|
Loading