Using the WebDAV Sample Application

Using the WebDAV Sample Application

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The WebDAV sample application is an ASP page that is installed with the Exchange Server 2003 Software Development Kit (SDK) in the \Program Files\Exchange SDK\SDK\Samples\WebDAV\ directory. To use the WebDAV sample application, navigate with Microsoft® Windows® Explorer to the install directory and double-click the "webdavsample.htm" file icon.

The following illustration shows the WebDAV sample application.

The screen shot of the sample application shows the status and response text for a query on a resource in the Exchange store.

To list the properties of a resource

  1. In the Target URL field, type the URL of the Exchange store resource.
  2. Click the List Properties button. The PROPFIND Method response status and body will be displayed in the Status and Response fields respectively. The displayname Field, the contentclass Field, the getlastmodified Field, and the getcontentlength Field of the resource will be rendered in the table at the bottom of the page. If the resource is a collection, then the children of the collection will also be listed.

To move a resource

  1. In the Target URL field, type the URL of the Exchange store resource that you want to move.
  2. In the Destination URL field, type the URL of the destination. To allow the server to rename the resource at the destination, select the Allow Rename box. To allow the server to overwrite a resource with the same name at the destination URL, select the Overwrite box. Note   You must enter the full URL of the item in the Destination URL, including the filename and extension. Example: https://server/public/Folder/MoveToFolder/MovedItem.txt.
  3. Click the Move Resource button. The MOVE Method response status and body will be displayed in the Status and Response fields respectively.

To copy a resource

  1. In the Target URL field, type the URL of the Exchange store resource that you want to copy.
  2. In the Destination URL field, type the URL of the location you want the resource to be copied to. To allow the server to rename the resource at the destination, select the Allow Rename box. To allow the server to overwrite a resource with the same name at the destination URL, select the Overwrite box. Note   You must enter the full URL of the item in the Destination URL, including the filename and extension. Example: https://server/public/Folder/CopyToFolder/CopiedItem.txt.
  3. Click the Copy Resource button. The COPY Method response status and body will be displayed in the Status and Response fields respectively.

To delete a resource

  1. In the Target URL field, type the URL of the Exchange store resource that you want to delete.
  2. Click the Delete Resource button. The DELETE Method response status and body will be displayed in the Status and Response fields respectively.

To make a collection

  1. In the Target URL field, type the URL of the location where you want to create an Exchange store collection.
  2. Click the Make Collection button. The MKCOL Method response status and body will be displayed in the Status and Response fields respectively.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.