Simon Taylor - .Net developer, Cheltenham

My record of coding problems solved and new things discovered

Interfacing with exchange : Part 5

clock March 9, 2009 09:20 by author Simon

This post includes code for setting permissions on public folders. It works by obtaining the xml describing the existing permissions and then using that as the basis of the xml sent with a PROPPATCH WebDAV command to udate the permissions. I found it very difficulty to find documentation that described how to put together the xml for all of the problems in this series of posts, but especially when I wanted to set permissions on folders - there are rules about the order that ACE's appear in the cml document etc. Fortunately I came across the PFDAVAdmin tool which helped considerably.More...



Interfacing with Exchange : Part 4

clock February 28, 2009 16:29 by author Simon

To move an item in a public folder you need to send a MOVE WebDav command together with the URI of the item to move - the destination URI should be added to the request as a HTTP header. The following code moves the contents of one folder to another by searching for all of the items in the source folder and looping through them and moving them one at a time to the destination folder.More...



Interfacing with Exchange : Part 3

clock February 28, 2009 16:18 by author Simon

Below is the code for creating a public folder in exchange. Basically you need to send a MKCOL WebDav command to the server together with xml to set further options such as whether or not to enable email for the folder.More...



Interfacing with Exchange : Part 2

clock February 26, 2009 19:47 by author Simon

If Outlook Web Access (OWA) is enabled you simply need to send a HTTP request to the server at the URL http://<server>/exchweb/bin/auth/owaauth.dll, passing the username and password as parameters. If authentication is succesful, two cookies will be returned with the response which should be stored and passed with subsequent requests to the server:More...



Interfacing with Exchange : Part 1

clock February 26, 2009 19:25 by author Simon

It is possible to interface with exchange - create public folders etc, using WebDAV. The next few posts will include code and an explanation of how to go about doing a number of things such as creating public folders. In order to be able to do anything you need to be able to send WebDAV xml documents via an Http request, below are a number of methods which can be used to do this, subsequent posts will make use of these methods. More...



About the author

Simon is currently living and working in Toronto, Canada as a software consultant for Infusion. He is primarily a .Net developer although sometimes has to turn his hand to other technologies such as Java and flex. Simon has also recently started iPhone application development. Contact me.

Sign in