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: Mon, 5 Dec 2005 21:27:02 -0800,    group: microsoft.public.exchange2000.development        back       


Shema Problem   
Hi All,

I am a developer and am working on  a webdav application to process emails 
on a particular public folder. I have also added a property on emails which 
are processed so when I reply to them and receive them back I can check if 
they have been sent from my application.

My problem is that when I try to do a webdav select on the public folder to 
retrieve emails with my new property, the request fails since it is invalid. 
I guess the problem is that webdav fails since these properties do not exist 
on normal email.

I would like to find a way how I can do a webdav select on items with and 
without my property without failing. I was also reading about schemas and how 
to define contentclass but I am finding it quite complicated. 

Is there anyone who can guide me to solve my issue?

Thanks
date: Mon, 5 Dec 2005 21:27:02 -0800   author:   Startatrix

Re: Shema Problem   
Post your sql query here.

Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com

"Startatrix"  wrote in message news:CC6413EA-45E1-4B71-9DC9-5C60D2CED712@microsoft.com...
> Hi All,
> 
> I am a developer and am working on  a webdav application to process emails 
> on a particular public folder. I have also added a property on emails which 
> are processed so when I reply to them and receive them back I can check if 
> they have been sent from my application.
> 
> My problem is that when I try to do a webdav select on the public folder to 
> retrieve emails with my new property, the request fails since it is invalid. 
> I guess the problem is that webdav fails since these properties do not exist 
> on normal email.
> 
> I would like to find a way how I can do a webdav select on items with and 
> without my property without failing. I was also reading about schemas and how 
> to define contentclass but I am finding it quite complicated. 
> 
> Is there anyone who can guide me to solve my issue?
> 
> Thanks
>
date: Tue, 6 Dec 2005 07:31:18 +0100   author:   Michael

Re: Shema Problem   
Hi, 
I am using this sql

            sQuery = "<?xml version='1.0'?>" & _
            "<g:searchrequest xmlns:g='DAV:' >" & _
            "<g:sql>SELECT ""DAV:displayname""  , 
""xmlns:d='http://domain.com.au/ebit/e5SiteURL"" "
            sQuery = sQuery & " FROM SCOPE('SHALLOW TRAVERSAL OF """ & sUri 
& """')" ' 'SHALLOW TRAVERSAL OF """ & sUri & """'
            sQuery = sQuery & " WHERE ""DAV:isfolder"" = false"
            sQuery = sQuery & "</g:sql>" & _
            "</g:searchrequest>"

I also tried to put the xmlns bit between the searchrequest but is does not 
work since the items do not usually have the property I am looking for

Thanks

"Michael" wrote:

> Post your sql query here.
> 
> Michael
> -------------------------------
> If you need WebDAV API for Exchange server,
> use our component WebDAV .NET for Exchange.
> Check out http://www.independentsoft.com
> 
> "Startatrix"  wrote in message news:CC6413EA-45E1-4B71-9DC9-5C60D2CED712@microsoft.com...
> > Hi All,
> > 
> > I am a developer and am working on  a webdav application to process emails 
> > on a particular public folder. I have also added a property on emails which 
> > are processed so when I reply to them and receive them back I can check if 
> > they have been sent from my application.
> > 
> > My problem is that when I try to do a webdav select on the public folder to 
> > retrieve emails with my new property, the request fails since it is invalid. 
> > I guess the problem is that webdav fails since these properties do not exist 
> > on normal email.
> > 
> > I would like to find a way how I can do a webdav select on items with and 
> > without my property without failing. I was also reading about schemas and how 
> > to define contentclass but I am finding it quite complicated. 
> > 
> > Is there anyone who can guide me to solve my issue?
> > 
> > Thanks
> >
date: Tue, 6 Dec 2005 15:36:01 -0800   author:   Startatrix

Re: Shema Problem   
I just generate your query with our API and works fine. You request body must be:

<?xml version="1.0" encoding="utf-8"?>
<D:searchrequest xmlns:D="DAV:">
<D:sql>
SELECT "DAV:displayname","http://domain.com.au/ebit/e5SiteURL","DAV:isfolder" FROM "http://server/exchange/User1/Inbox" WHERE "DAV:isfolder" = False 
</D:sql>
</D:searchrequest>


Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com


"Startatrix"  wrote in message news:29DA042D-AB4B-42D0-8214-D300AA2D1644@microsoft.com...
> Hi, 
> I am using this sql
> 
>             sQuery = "<?xml version='1.0'?>" & _
>             "<g:searchrequest xmlns:g='DAV:' >" & _
>             "<g:sql>SELECT ""DAV:displayname""  , 
> ""xmlns:d='http://domain.com.au/ebit/e5SiteURL"" "
>             sQuery = sQuery & " FROM SCOPE('SHALLOW TRAVERSAL OF """ & sUri 
> & """')" ' 'SHALLOW TRAVERSAL OF """ & sUri & """'
>             sQuery = sQuery & " WHERE ""DAV:isfolder"" = false"
>             sQuery = sQuery & "</g:sql>" & _
>             "</g:searchrequest>"
> 
> I also tried to put the xmlns bit between the searchrequest but is does not 
> work since the items do not usually have the property I am looking for
> 
> Thanks
> 
> "Michael" wrote:
> 
> > Post your sql query here.
> > 
> > Michael
> > -------------------------------
> > If you need WebDAV API for Exchange server,
> > use our component WebDAV .NET for Exchange.
> > Check out http://www.independentsoft.com
> > 
> > "Startatrix"  wrote in message news:CC6413EA-45E1-4B71-9DC9-5C60D2CED712@microsoft.com...
> > > Hi All,
> > > 
> > > I am a developer and am working on  a webdav application to process emails 
> > > on a particular public folder. I have also added a property on emails which 
> > > are processed so when I reply to them and receive them back I can check if 
> > > they have been sent from my application.
> > > 
> > > My problem is that when I try to do a webdav select on the public folder to 
> > > retrieve emails with my new property, the request fails since it is invalid. 
> > > I guess the problem is that webdav fails since these properties do not exist 
> > > on normal email.
> > > 
> > > I would like to find a way how I can do a webdav select on items with and 
> > > without my property without failing. I was also reading about schemas and how 
> > > to define contentclass but I am finding it quite complicated. 
> > > 
> > > Is there anyone who can guide me to solve my issue?
> > > 
> > > Thanks
> > >
date: Wed, 7 Dec 2005 08:39:19 +0100   author:   Michael

Google
 
Web ureader.com


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