Jackrabbit Webdav 1.4 SearchMethod issue

1 message Options
Embed this post
Permalink
rizwkhan123

Jackrabbit Webdav 1.4 SearchMethod issue

Reply Threaded More More options
Print post
Permalink
Dear Users,
 
I am having issues with the SearchMethod... always get a 400 error...
 
Using following as a search request query:
 
<?xml version="1.0" encoding="UTF-8"?><g:searchrequest xmlns:M="urn:schemas:httpmail:" xmlns:R="http://schemas.microsoft.com/repl/" xmlns:g="DAV:"><g:sql>SELECT  "DAV:id",         "DAV:href",                "http://schemas.microsoft.com/repl/resourcetag",         "urn:schemas:httpmail:subject",          "urn:schemas:httpmail:from",          "urn:schemas:httpmail:datereceived"  FROM SCOPE('shallow traversal of "https://myserver.com/exchange/"') WHERE "DAV:ishidden"=False AND "DAV:isfolder"=False</g:sql></g:searchrequest>
 
 
The statement looks as below:
sMethod =new SearchMethod("https://myserver.com/exchange/", searchQueryAsAbove,"xpath");
 
Can you please guide or provide me examples of setting SearchMethod correctly.
 
Thanks in advance for the help.
 
With regards,
Rizwan