create "public Folder(Contact)" by using webDAV - Microsoft Exchange

This is a discussion on create "public Folder(Contact)" by using webDAV - Microsoft Exchange ; 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 ropertyupdate xmlns:a=\"DAV:\" " + "xmlns:n0=\"http://schemas.microsoft.com/exchange\">" + ...

+ Reply to Thread
Results 1 to 2 of 2

create "public Folder(Contact)" by using webDAV

  1. Default 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\" ?><aropertyupdate
    xmlns:a=\"DAV:\" " +
    "xmlns:n0=\"http://schemas.microsoft.com/exchange\">" +
    "<a:set>" +
    " <arop> " +
    "<n0utlookfoldersclass>IPF.Contact</n0utlookfoldersclass> " +
    //"<a:displayname>Sample0x2fFolder</a:displayname> " +
    " </arop>" +
    " </a:set>" +
    "</aropertyupdate>";

    It return 400 Error, my application is Java.

    Thanks in advanced

  2. Default Re: create "public Folder(Contact)" by using webDAV

    One of your property names is wrong should be outlookfolderclass not
    outlookfoldersclass eg something like

    <aropertyupdate xmlns:a="DAV:"
    xmlns:ex='http://schemas.microsoft.com/exchange/'>
    <a:set><arop><exutlookfolderclass>IPF.Contact</exutlookfolderclass></arop></a:set>
    </aropertyupdate>

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

    Cheers
    Glen

    "jeff" <jeff@discussions.microsoft.com> 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\" ?><aropertyupdate
    > xmlns:a=\"DAV:\" " +
    > "xmlns:n0=\"http://schemas.microsoft.com/exchange\">" +
    > "<a:set>" +
    > " <arop> " +
    > "<n0utlookfoldersclass>IPF.Contact</n0utlookfoldersclass> "
    > +
    > //"<a:displayname>Sample0x2fFolder</a:displayname> " +
    > " </arop>" +
    > " </a:set>" +
    > "</aropertyupdate>";
    >
    > It return 400 Error, my application is Java.
    >
    > Thanks in advanced




+ Reply to Thread

Similar Threads

  1. WEBDAV can not get CATEGORIES feature from "public Folder"
    By Application Development in forum Microsoft Exchange
    Replies: 10
    Last Post: 03-29-2007, 11:52 AM
  2. WebDAV and IE browser access "Public folder"
    By Application Development in forum Microsoft Exchange
    Replies: 6
    Last Post: 11-21-2006, 04:34 PM
  3. Public Folder Contact "One or more parameter values are not valid."
    By Application Development in forum Microsoft Exchange
    Replies: 0
    Last Post: 06-01-2006, 10:34 AM
  4. create a new contact on public Folder by using webDAV
    By Application Development in forum Microsoft Exchange
    Replies: 1
    Last Post: 04-12-2006, 04:09 PM
  5. Deleting all items in public contact folder using webdav
    By Application Development in forum Microsoft Exchange
    Replies: 8
    Last Post: 02-16-2005, 12:55 PM