Navigating the WebDAV Sample Application Source Code

Navigating the WebDAV Sample Application Source Code

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 source code for the WebDAV sample application is in webdavsample.htm. It is installed with the Exchange Server 2003 Software Development Kit (SDK) in the following directory: \Program Files\Exchange SDK\SDK\Samples\WebDAV\. The following table provides a list of the subprocedures relevant to using WebDAV Methods.

WebDAV Sample Application (webdavsample.htm)

Subprocedure Description
cmdListProperties_OnClick() Performs a PROPFIND Method operation of depth 1 on the resource listed in the txtTargetURL textbox. Calls the XMLHTTPStateChange sub-procedure to handle the data returned from the server.
cmdCopyResource_OnClick() Copies the resource located at the URL in the txtTargetURL textbox to the URL in the txtDestinationURL textbox and displays the COPY Method response in the txtResponse textbox.
cmdDeleteResource_OnClick() Deletes the resource located at the URL in the txtTargetURL textbox and displays the DELETE Method response in the txtResponse textbox.
cmdMoveResource_OnClick() Moves the resource located at the URL in the txtTargetURL textbox to the collection at the URL in the txtDestinationURL textbox. Displays the MOVE Method response in the txtResponse textbox.
cmdMakeCollection_OnClick() Creates a collection at the URL in the txtTargetURL textbox and displays the MKCOL Method response in the txtResponse textbox.
XMLHTTPStateChange Checks the XMLHTTP.ReadyState property to see if all the data has been streamed to the client from the PROPFIND Method response. If there's no error in the response, then a XML Document Object Model (DOM) document transforms the XMLHTTP.XMLBody response into an HTML table using the XSL template of the sample application.

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

This topic last updated: June 2007

Build: June 2007 (2007.618.1)

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