Exchange Web Services (EWS) is the API that unlocks the secrets of the Exchange Store. Well, it's one of them - the other is MAPI, but few people actually write MAPI code these days. Some help is always welcome when it comes to understanding how APIs work. Having access to 101 code samples written for EWS falls into the "very helpful" category.
The recent provision of 101 Exchange Web Services (EWS) code samples in one package is very welcome. The samples cover pretty well all of the basic operations that you’d want to perform against an Exchange server, including the creation and sending of email, searching through folders, and so on. They serve as a nice complement to the efforts of MVP Glen Scales, who has long ploughed a lonely furrow in terms of providing accessible and easy to understand examples of how to use EWS in his blog.
The samples work against Exchange 2007 (SP1 onwards), Exchange 2010, Exchange Web Services API. You’ll also want to install the EWSEditor utility to understand what goes on when EWS accesses Exchange mailboxes., and Exchange Online ( ) as long as you've installed the
The reason why EWS is so important is that it is now the go-to API for developers who need to access information held in Exchange. Of course, you could use MAPI, but only if you really insist. Despite the work of Stephen Griffin on the MFCMAPI utility and in general to evangelize MAPI, in practice, MAPI has now become the sole prerogative of Microsoft developers.
EWS is also the basis for Outlook 2011 for Mac, a product that’s frustrating to use if you are accustomed to the features and functionality of any PC version of Outlook. Even with the inadequacies of Outlook for Mac shine through brightly, the fact remains that EWS provides programmers with the ability to create highly functional Exchange clients and by inference, to be able to access pretty well any data that they should need to manipulate to integrate a product with Exchange.
Spreading knowledge is always a good thing and that’s why I very much like Microsoft’s initiative of making the 101 EWS code examples available. I hope you like them too!
Follow Tony @12Knocksinna