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,
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