Starting with Exchange 2007, Exchange Web Services (EWS) provides an interface for developers to create custom-client applications that interact with the data stored in an On-Premise or Exchange online mailbox. It allows access to e-mail messages, contacts, calendar, tasks, and public folders that are content programmatically. EWS works by exchanging Simple Object Access Protocol (SOAP) XML messages for information interchange using HTTP or HTTPS protocols to the Exchange Client Access Servers. In this chapter, we will review the Exchange Web Services application programming interface (API) and its usage in managing an Exchange On-Premise and online organization.
The following topics will be covered in this chapter:
Introducing Exchange Web Services
Understanding EWS managed API
Writing basic EWS managed API code
Creating custom folders in mailboxes
Writing a basic script