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: Fri, 16 Nov 2007 08:55:00 -0800,    group: microsoft.public.exchange2000.development        back       


create "public Folder(Contact)" by using webDAV   
Hi All,

I want to create a public folder(Contact) programatically by using WebDAV

I use MkCOLMEthod, however, my Query is wrong, how to write a Query?

my Query is:

     String query ="<?xml version=\"1.0\" ?><a:propertyupdate 
xmlns:a=\"DAV:\" " +
     "xmlns:n0=\"http://schemas.microsoft.com/exchange\">" +
     "<a:set>" + 
     "  <a:prop> " + 
            "<n0:outlookfoldersclass>IPF.Contact</n0:outlookfoldersclass> " +
            //"<a:displayname>Sample0x2fFolder</a:displayname> " +
     "  </a:prop>" + 
     " </a:set>" + 
     "</a:propertyupdate>";

It return 400 Error, my application is Java.

Thanks in advanced
date: Fri, 16 Nov 2007 08:55:00 -0800   author:   jeff

Re: create "public Folder(Contact)" by using webDAV   
One of your property names is wrong should be outlookfolderclass not 
outlookfoldersclass  eg something like

<a:propertyupdate xmlns:a="DAV:" 
xmlns:ex='http://schemas.microsoft.com/exchange/'>
    <a:set><a:prop><ex:outlookfolderclass>IPF.Contact</ex:outlookfolderclass></a:prop></a:set>
</a:propertyupdate>

I wouldn't worry about setting the displayname its will use the name from 
the URL.

Cheers
Glen

"jeff"  wrote in message 
news:943E1667-AA3C-48C6-84B8-6B7918552B41@microsoft.com...
> Hi All,
>
> I want to create a public folder(Contact) programatically by using WebDAV
>
> I use MkCOLMEthod, however, my Query is wrong, how to write a Query?
>
> my Query is:
>
>     String query ="<?xml version=\"1.0\" ?><a:propertyupdate
> xmlns:a=\"DAV:\" " +
>     "xmlns:n0=\"http://schemas.microsoft.com/exchange\">" +
>     "<a:set>" +
>     "  <a:prop> " +
>            "<n0:outlookfoldersclass>IPF.Contact</n0:outlookfoldersclass> " 
> +
>            //"<a:displayname>Sample0x2fFolder</a:displayname> " +
>     "  </a:prop>" +
>     " </a:set>" +
>     "</a:propertyupdate>";
>
> It return 400 Error, my application is Java.
>
> Thanks in advanced
date: Tue, 20 Nov 2007 14:38:37 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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