90% using exchange mail management developed by WebDAV (1) -- Introduction to WebDAV
WebDAV is the World Wide Web Distributed Authoring and Versioning (Web Distributed creation and versionization), which is equivalent to Microsoft's FrontPage Server Extensions (for Microsoft ). To put it simply, WebDAV is an evolving Internet standard that extends the http1.1 protocol, including reading, writing, and locking files. Rfc2518 describes the Dav specification. The dav Specification includes three complete features:
Properties ). Using XML, Dav supports an extensible property set for metadata. You can use the Dav protocol to retrieve, set, and delete these attributes.
Namespace management ). With XML, Dav supports local copy, movement, and rename operations, and also supports collection concepts (such as file directories or Exchange folders ). Compared with HTTP, this is an obvious advantage. In HTTP, copying an object means downloading the object and then uploading the object again.
Locking ). Dav supports locking, which prevents the two authors from rewriting the changes.Additionally, you can use additional features, including support for advanced collections, versioning, and access control lists.
Note about using WebDAV in the exchange2003 SDK: In Applications created using WebDAV, if sensitive information is submitted or communicated over the Internet, we strongly require IIS always ure serve to use SSL/TLS encryption for better security. In the Intranet, WebDAV uses NTLM or Kerberos for authentication, but does not provide data encryption.
In this mail management module, I used the following WebDAV methods:
1. Search Method: Used to query resources in exchange store.
2. PROPFIND method: Obtain the attributes of the identified resource by requesting the URI. This method can be used to set and attribute resources.
3. Delete method: Used to delete resources of a specified Uri. It can also be used to delete collection and attributes of a resource.
4. X-MS-ENUMATTS method: It is said that Microsoft has not made public before. Used to enumerate all attachments in E-mail message.
5. Get method: Well, why can't I find it in WebDAV ??? Suddenly, WebDAV is an extension of the HTTP protocol. This is the basic get method. As for its role, I will discuss it later.
Glossary:
1. Uri (Uniform Resource Identifier) is the address string of the referenced object, which generally resides on the Internet. The two types of URIs are URL and urn. The URI is specified in rfc1630 and 1808.
URL (Uniform Resource Locator) is a standardized string used to specify resources on the Internet, such as HTML documents or disk files. The URL format is Protocol: // server/path/resource. The terms "Uri" and "url" are frequently used.
Urn (Uniform Resource Name, unified resource name) is a standardized string used to specify attributes and resources. Under normal circumstances, the urn format follows a convention in which entities provide uniqueness by using registered domain names in urn. For example, http://schemas.microsoft.com/exchange/propertynamepolicurn.