Results 1 to 4 of 4

Thread: What's wrong with this WebDAV Request?

  1. #1
    George Durzi Guest

    What's wrong with this WebDAV Request?

    If I use this WebDAV request to extract one property from Contact, it works
    ok.

    <?xml version="1.0"?>
    <a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/">
    <a:prop>
    <b:givenName/>
    </a:prop>
    </a:propfind>


    However, I'd like to use <allprop/> instead of actually manually writing
    each property into the request. When my request looks like this, I get a 401
    (Bad Request) exception.


    <?xml version="1.0"?>
    <a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/">
    <b:allprop/>
    </a:propfind>


    What am I doing wrong? Thank you

  2. #2
    Henning Krause [MVP] Guest
    Hello,

    try

    <D:propfind xmlns:D="DAV:" xmlns:E="http://schemas.microsoft.com/exchange/">
    <D:allprop>
    <E:allprop />
    </D:allprop>
    </D:propfind>

    That should give you most properties.

    Greetings,
    Henning Krause [MVP]
    ==========================
    Visit my website: http://www.infinitec.de
    Try my free Exchange Explorer: Mistaya
    (http://www.infinitec.de/?page=products)


    "George Durzi" <gdurzi@hotmail.com> wrote in message
    news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
    If I use this WebDAV request to extract one property from Contact, it
    works
    ok.

    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    a:prop
    b:givenName/
    /a:prop
    /a:propfind


    However, I'd like to use <allprop/> instead of actually manually writing
    each property into the request. When my request looks like this, I get a
    401
    (Bad Request) exception.


    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    b:allprop/
    /a:propfind


    What am I doing wrong? Thank you

  3. #3
    George Durzi Guest
    Henning,
    Thank you, this works great.

    Would you mind explaining how this request actually works?

    "Henning Krause [MVP]" <newsgroup.no@spam.infinitec.de> wrote in message
    news:eGCaAdHzEHA.3908@TK2MSFTNGP12.phx.gbl...
    Hello,

    try

    D:propfind xmlns:D="DAV:"
    xmlns:E="http://schemas.microsoft.com/exchange/"
    D:allprop
    E:allprop /
    /D:allprop
    /D:propfind

    That should give you most properties.

    Greetings,
    Henning Krause [MVP]
    ==========================
    Visit my website: http://www.infinitec.de
    Try my free Exchange Explorer: Mistaya
    (http://www.infinitec.de/?page=products)


    "George Durzi" <gdurzi@hotmail.com> wrote in message
    news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
    If I use this WebDAV request to extract one property from Contact, it
    works
    ok.

    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    a:prop
    b:givenName/
    /a:prop
    /a:propfind


    However, I'd like to use <allprop/> instead of actually manually writing
    each property into the request. When my request looks like this, I get a
    401
    (Bad Request) exception.


    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    b:allprop/
    /a:propfind


    What am I doing wrong? Thank you



  4. #4
    Henning Krause [MVP] Guest
    Hello,

    well, the <D:allprop> tag tells the Exchange server to return all common
    properties as well as all properties that belong to the schema-class of the
    item.

    The <E:allprop> tells the server to return a subset of the MAPI properties
    as well.

    Greetings,
    Henning Krause [MVP]
    ==========================
    Visit my website: http://www.infinitec.de
    Try my free Exchange Explorer: Mistaya
    (http://www.infinitec.de/?page=products)


    "George Durzi" <gdurzi@hotmail.com> wrote in message
    news:#f98efMzEHA.1392@tk2msftngp13.phx.gbl...
    Henning,
    Thank you, this works great.

    Would you mind explaining how this request actually works?

    "Henning Krause [MVP]" <newsgroup.no@spam.infinitec.de> wrote in message
    news:eGCaAdHzEHA.3908@TK2MSFTNGP12.phx.gbl...
    Hello,

    try

    D:propfind xmlns:D="DAV:"
    xmlns:E="http://schemas.microsoft.com/exchange/"
    D:allprop
    E:allprop /
    /D:allprop
    /D:propfind

    That should give you most properties.

    Greetings,
    Henning Krause [MVP]
    ==========================
    Visit my website: http://www.infinitec.de
    Try my free Exchange Explorer: Mistaya
    (http://www.infinitec.de/?page=products)


    "George Durzi" <gdurzi@hotmail.com> wrote in message
    news:O#KxXrAzEHA.2200@TK2MSFTNGP09.phx.gbl...
    If I use this WebDAV request to extract one property from Contact, it
    works
    ok.

    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    a:prop
    b:givenName/
    /a:prop
    /a:propfind


    However, I'd like to use <allprop/> instead of actually manually
    writing
    each property into the request. When my request looks like this, I get
    a
    401
    (Bad Request) exception.


    ?xml version="1.0"?
    a:propfind xmlns:a="DAV:" xmlns:b="urn:schemas:contacts:"
    xmlns:c="http://schemas.microsoft.com/mapi/proptag/"
    xmlns:d="http://schemas.microsoft.com/mapi/"
    b:allprop/
    /a:propfind


    What am I doing wrong? Thank you





Similar Threads

  1. sending a meeting request with webdav
    By in forum Development
    Replies: 8
    Last Post: 09-30-2005, 09:58 AM
  2. WebDAV SUBSCCRIBE Request Limit
    By Mihir Vaidya in forum Development
    Replies: 3
    Last Post: 06-17-2005, 09:59 AM
  3. Replies: 1
    Last Post: 01-28-2005, 11:40 AM
  4. Replies: 0
    Last Post: 01-27-2005, 12:10 AM
  5. Respond to meeting request using WebDAV
    By Eric in forum Development
    Replies: 4
    Last Post: 12-21-2004, 08:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - CAD Forum