You should be using the
Exchange Web Services Managed API. "EWS combines the functionality that is included in WebDAV and CDOEX".
I don't have a code snippet to hand as I'm not in work just now, but I've done exactly what you describe in your question for a project last year - I'll dig it out later if I get a chance :)