Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: 10 Apr 2006 07:09:59 -0700,    group: microsoft.public.exchange2000.development        back       


WebDAV Query with Order by Clause   
Dear All,

I am using the following query to get the messages from the public
folder. The query works fine without the order by clause and even with
\"DAV:creationdate\" in the order by clause but with the
\"urn:schemas:httpmail:subject\" it is not working. and returns {"The
remote server returned an error: (400) Bad Request." }
 Please help me out in this regard?

"<?xml version='1.0' ?>" +
				"<a:searchrequest xmlns:a='DAV:'><a:sql>" +
				" SELECT
\"DAV:href\",\"urn:schemas:httpmail:datereceived\",\"urn:schemas:httpmail:subject\",\"DAV:creationdate\",\"DAV:id\""
+
				" FROM scope('shallow traversal of \"" + Folder+ "\"')" +
				" WHERE \"DAV:isfolder\"=False AND \"DAV:iscollection\"=False ORDER
BY \"urn:schemas:httpmail:subject\" "+
				" </a:sql></a:searchrequest>"


Thanks,
Faraz Qureshi
date: 10 Apr 2006 07:09:59 -0700   author:   unknown

Re: WebDAV Query with Order by Clause   
Though it may surprise you, you can't order by 
"urn:schemas:httpmail:subject" as it is calculated.  Try sorting with 
"urn:schemas:httpmail:normalizedsubject".

Regards,
- Karim

 wrote in message 
news:1144678199.336215.101260@t31g2000cwb.googlegroups.com...
> Dear All,
>
> I am using the following query to get the messages from the public
> folder. The query works fine without the order by clause and even with
> \"DAV:creationdate\" in the order by clause but with the
> \"urn:schemas:httpmail:subject\" it is not working. and returns {"The
> remote server returned an error: (400) Bad Request." }
> Please help me out in this regard?
>
> "<?xml version='1.0' ?>" +
> "<a:searchrequest xmlns:a='DAV:'><a:sql>" +
> " SELECT
> \"DAV:href\",\"urn:schemas:httpmail:datereceived\",\"urn:schemas:httpmail:subject\",\"DAV:creationdate\",\"DAV:id\""
> +
> " FROM scope('shallow traversal of \"" + Folder+ "\"')" +
> " WHERE \"DAV:isfolder\"=False AND \"DAV:iscollection\"=False ORDER
> BY \"urn:schemas:httpmail:subject\" "+
> " </a:sql></a:searchrequest>"
>
>
> Thanks,
> Faraz Qureshi
>
date: Mon, 10 Apr 2006 18:10:14 -0700   author:   Karim Batthish [MS]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us