Using WebDAV I want to take common folders URL's and I send XML like this: query = "<?xml version=\"1.0\"?>" + "<g:searchrequest xmlns:g=\"DAV:\">" + "<g:sql>SELECT" + " \"urn:schemas:httpmail:calendar\" AS CalendarURI," + " \"urn:schemas:httpmail:tasks\" AS TasksURI," + " \"urn:schemas:httpmail:contacts\" AS ContactsURI" + " FROM SCOPE ('SHALLOW TRAVERSAL OF \"\"') WHERE \"DAV:isfolder\" = True AND \"DAV:ishidden\" = False" +"</g:sql></g:searchrequest>"; and response is like below, for every folder: <a:response> <a:href>https://webmail.domain.com/exchange/user1@mydomain.com/Tasks/</a:href> <a:propstat> <a:status>HTTP/1.1 404 Resource Not Found</a:status> <a:prop> <CalendarURI /> <TasksURI /> <ContactsURI /> </a:prop> </a:propstat> </a:response> More curious is that this happened only for a few accounts, most of them return valid URL's. I have no idea what it may be. HELP. Thanks in advance.
It is not always /user1@mydomain.com/ . Sometimes it is just /user1/ Lee. -- _______________________________________ Outlook Web Access for PDA, OWA For WAP: www.leederbyshire.com ________________________________________ "Marcin Krzyzanowski" wrote in message news:uhOvn7ARIHA.1208@TK2MSFTNGP05.phx.gbl... > Using WebDAV I want to take common folders URL's and I send XML like this: > > query = "<?xml version=\"1.0\"?>" > + "<g:searchrequest xmlns:g=\"DAV:\">" > + "<g:sql>SELECT" > + " \"urn:schemas:httpmail:calendar\" AS CalendarURI," > + " \"urn:schemas:httpmail:tasks\" AS TasksURI," > + " \"urn:schemas:httpmail:contacts\" AS ContactsURI" > + " FROM SCOPE ('SHALLOW TRAVERSAL OF \"\"') WHERE > \"DAV:isfolder\" = True AND \"DAV:ishidden\" = False" > +"</g:sql></g:searchrequest>"; > > > and response is like below, for every folder: > > <a:response> > <a:href>https://webmail.domain.com/exchange/user1@mydomain.com/Tasks/</a:href> > <a:propstat> > <a:status>HTTP/1.1 404 Resource Not Found</a:status> > <a:prop> > <CalendarURI /> > <TasksURI /> > <ContactsURI /> > </a:prop> > </a:propstat> > </a:response> > > More curious is that this happened only for a few accounts, most of them > return valid URL's. I have no idea what it may be. HELP. > > > Thanks in advance.
I mean exchange2k3SP1. And here it's user@domain.com for sure. BTW using PROPFIND I get well-known information for this user but with searchrequest don't. Lee Derbyshire [MVP] pisze: > It is not always /user1@mydomain.com/ . Sometimes it is just /user1/ > > Lee. >