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: 28 Feb 2007 14:52:25 -0800,    group: microsoft.public.exchange2000.development        back       


What does the isCollection in PROPPATCH actually do ?   
Hi,

What does the isCollection in PROPPATCH actually do ?

I have an application that sends e-mail with an attachment using
WebDAV.
Exchange Server 2003 with Forms Based Authentication ON.

I follow the standard procedure outlined in this group
i.e

1. Create message in temporary folder
2. PROPPATCH the message
3. Attach file
4. Move to submission URL.

It all seems to work in most cases. This was failing for 1 of my
customers.
On debugging further I found that the PROPPATCH in line #2 was failing
with HTTP 500.
This is what I send

<?xml version="1.0"?>
<d:propertyupdate
 xmlns:d="DAV:" xmlns:header="urn:schemas:mailheader:"
 xmlns:e="http://schemas.microsoft.com/exchange/"
 xmlns:mapi="http://schemas.microsoft.com/mapi/"
 xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
 <d:set>
    <d:prop>
         <isCollection xmlns="DAV:">False</isCollection>
         <header:message-id></header:message-id>
         <d:contentclass>urn:content-classes:message</d:contentclass>
         <e:outlookmessageclass>IPM.Note</e:outlookmessageclass>
         <mapi:finvited dt:dt="boolean">1</mapi:finvited>
    </d:prop>
  </d:set>
</d:propertyupdate>

If I remove isCollection and just send this instead

<?xml version="1.0"?>
<d:propertyupdate
 xmlns:d="DAV:" xmlns:header="urn:schemas:mailheader:"
 xmlns:e="http://schemas.microsoft.com/exchange/"
 xmlns:mapi="http://schemas.microsoft.com/mapi/"
 xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
 <d:set>
    <d:prop>
         <header:message-id></header:message-id>
         <d:contentclass>urn:content-classes:message</d:contentclass>
         <e:outlookmessageclass>IPM.Note</e:outlookmessageclass>
         <mapi:finvited dt:dt="boolean">1</mapi:finvited>
    </d:prop>
  </d:set>
</d:propertyupdate>

it works !!

So, my question is what does the isCollection in PROPPATCH actually do
here ?
Has anyone else come across this before ?

Thank you,
date: 28 Feb 2007 14:52:25 -0800   author:   unknown

Re: What does the isCollection in PROPPATCH actually do ?   
Hello,

> So, my question is what does the isCollection in PROPPATCH actually do
> here ?
> Has anyone else come across this before ?

Hello,

under certain circumstances, the PROPPATCH is needed. Otherwise, adding the 
attachment would fail. But setting the IsCollection property is clearly not 
good. There just had to be one property set to get the attachment-adding 
done.
Nowadays, I'm just creating a new property in an unused namespace for such 
things.

If your solution works without the PROPPATCH just omit it.

Best regards,
Henning Krause
date: Thu, 1 Mar 2007 01:02:48 +0100   author:   Henning Krause [MVP - Exchange]

Google
 
Web ureader.com


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