This article reflects the state of the Exchange Server 2016 preview release when it was published (July 2015). Exchange Server 2016 has since been officially released, and there is no longer a preview version. This article is kept as a historical record, so the content may differ from the current official release. In addition, extended support for Exchange Server 2016 ended on October 14, 2025, so it is no longer a supported product.
Sunrise Calendar, the app described in this article, shut down in 2016. This article is kept as a historical record of the information at the time it was written, and the steps described here can no longer be reproduced.
The Outlook REST API has already been retired, and you now need to use Microsoft Graph instead. This article is kept as a historical record of the information at the time it was written. The endpoints and authentication method described here can no longer be used.
When developing a custom application that connects to an Exchange server, address book functionality often ends up being a requirement. Many applications connect to the Exchange server using EWS, but unfortunately EWS has no mechanism for querying the address book.
So what should you do? Using OWA would solve the problem, but if you really have to build this yourself, the following two approaches come to mind.
The EWS Java API is published on GitHub. As the name suggests, it’s an API for calling Exchange Web Services from Java. When connecting to EWS from a Windows environment, it’s convenient to use the EWS Managed API from C# or VB, but when you want to use it from Java, you end up using the EWS Java API.
However, there’s almost no explanation on how to get this API working. . .