Warning
Migration note: This article preserves the instructions for Exchange Online and EWSEditor as they were when it was written. Basic authentication is no longer available for EWS in Exchange Online. See Microsoft Learn’s explanation of Basic authentication deprecation for details.
Microsoft has also announced the retirement of EWS in Exchange Online. For new applications, consider alternatives such as Microsoft Graph. This retirement applies to Exchange Online; it does not mean that EWS is being retired in Exchange Server. The instructions below are not guaranteed to work in current environments.
There is no simple way to try Exchange Web Services (EWS), but you can perform operations in EWSEditor and inspect the traffic with Fiddler to see how the communication works. This article therefore describes how to connect to EWS in Exchange Online using EWSEditor. When developing an application that uses EWS, you implement these communications using the EWS Managed API (although you can also implement them without it). For Exchange Online, Microsoft Graph is recommended over EWS.
Try EWSEditor with Basic authentication
Support for Basic authentication in Exchange Online EWS is scheduled to end in the second half of 2021.
- Install and start EWSEditor.
- When the About page appears, click [OK].
- Click [File] - [New Exchange Service].
- Select [Service URL] and click [365].
- Select [Exchange2013_SP1] under [EWS Schema Version].
- Select [Use the following credentials instead of the default Windows credentials.].
- Enter the UPN of the user you want to connect as in [User Name].
- Enter that user’s password in [Password].
- Leave [Domain] blank and click [OK].
- Click [Yes].
- The mailbox folder tree appears. Browse folders and items as needed.
Try EWSEditor with OAuth (built-in application)
- Install and start EWSEditor.
- When the About page appears, click [OK].
- Click [File] - [New Exchange Service].
- Select [Service URL] and click [365].
- Select [Exchange2013_SP1] under [EWS Schema Version].
- Select [Use oAuth (Registration must have been completed first)].
- Leave the values of [Redirect URI], [Client App ID], [Server Name], and [Auth Authority] unchanged, and click [OK].
- Sign in with an Office 365 user account.
- Click [Yes].
- The mailbox folder tree appears. Browse folders and items as needed.