EWS 应用程序类型EWS application types

了解您可以使用 Exchange 中的 EWS 创建的最常见的应用程序类型。Find out about the most common types of applications that you can create by using EWS in Exchange.

EWS 和 Exchange 体系结构提供了统一的开发模型,可用于以一致的方式创建最常见类型的应用程序,其中包括以下内容:The EWS and Exchange architecture provides a uniform development model that you can use to create the most common types of applications in a consistent way, including the following:

  • 客户端应用程序—使用 EWS 访问 Exchange 数据的独立应用程序。Client applications — Standalone applications that use EWS to access Exchange data. Outlook 和 Outlook Web App 是客户端应用程序的示例。Outlook and Outlook Web App are examples of client applications.

  • 门户应用程序:通过包含从 Exchange 检索的信息(如忙/闲或联系人信息)扩展现有网页的应用程序。Portal applications — Applications that extend an existing web page by including information retrieved from Exchange, such as free/busy or contact information. 检索 Exchange 数据的 SharePoint web 部件是门户应用程序的一个示例。A SharePoint web part that retrieves Exchange data is an example of a portal application.

  • 服务应用程序-用于将 Exchange 中的数据集成或同步到现有系统中的后台作业。Service applications — Background jobs used to integrate or synchronize data from Exchange into an existing system. 例如,将 Exchange 中的联系人信息同步到 CRM 应用程序的应用程序。For example, an application that synchronizes contact information from Exchange into a CRM application.

其中的每个应用程序模型都可以使用通用基本代码从 Exchange 中检索信息,因此您无需更改用于检索客户端、门户或服务应用程序之间的项目信息的 EWS 代码。Each of these application models can use a common code base to retrieve information from Exchange - so you don't need to change the EWS code used to retrieve item information between a client, portal, or service application. 从一个应用程序到下一个应用程序可能会发生变化的是邮箱访问和身份验证机制。What might change from one application to the next is the mailbox access and authentication mechanism. 例如,客户端应用程序通常使用直接用户访问和基本或 NTLM 身份验证,而服务应用程序可能会对邮箱访问和 OAuth 身份验证使用模拟。For example, client applications commonly use direct user access and basic or NTLM authentication, whereas a service application likely uses impersonation for mailbox access and OAuth authentication.

客户端应用程序Client applications

EWS 客户端应用程序是任何独立应用程序,它使用 EWS 从 Exchange 存储中检索信息。An EWS client application is any standalone application that uses EWS to retrieve information from the Exchange store. EWS 客户端应用程序使用直接客户端访问或代理访问从邮箱存储中检索数据。EWS client applications use direct client access or delegate access to retrieve data from the mailbox store. 以下是使用 EWS 的客户端应用程序的一些示例:The following are some examples of client applications that use EWS:

  • Outlook,在邮件提示、可用性和用户 OOF 状态等功能中Outlook, in features such as MailTips, availability, and user OOF status

  • 适用于设备的 OWAOWA for Devices

  • Outlook for Mac 2011Outlook for Mac 2011

  • Lync,用于提供可用性信息Lync, for availability information

客户端应用程序通常使用直接访问和基本或 NTLM 身份验证,以便用户只能使用自己的登录凭据访问自己邮箱中的信息。Client applications commonly use direct access and basic or NTLM authentication, so that users are limited to accessing information in their own mailbox with their own logon credentials. 客户端应用程序还应为已授予访问其他用户的邮箱权限的用户支持代理访问。Client applications should also support delegate access for users who have been given permission to access another user's mailbox.

门户应用程序Portal applications

门户应用程序扩展现有网页或门户以将 Exchange 邮箱信息包含为页面的个性化组件。A portal application extends an existing web page or portal to include Exchange mailbox information as a personalized component of the page. SharePoint web 部件是最常见的门户应用程序,它通过提供 Exchange 邮箱数据中的视图(如未读邮件、最新邮件和日历事件,以及用户通常查看的 SharePoint 门户页)来为用户提供个性化体验。SharePoint web parts are the most common portal applications and provide users with a personalized experience by providing views into Exchange mailbox data, such as unread messages, most recent messages, and calendar events, alongside their commonly viewed SharePoint portal page. EWS 门户应用程序可以使用直接客户端访问、委派访问或模拟从邮箱存储中检索数据。EWS portal applications can use direct client access, delegate access, or impersonation to retrieve data from the mailbox store. 由于 Exchange 2013 和 SharePoint 2013 都支持用于服务器到服务器身份验证的 OAuth 授权协议,因此 OAuth 提供最严密、最安全的身份验证方法。Because Exchange 2013 and SharePoint 2013 both support the OAuth authorization protocol for server-to-server authentication, OAuth provides the most seamless and secure authentication method.

服务应用程序Service applications

服务应用程序通常是现有应用程序中内置的一种后台作业,该作业可扩展到 Exchange 以在系统与 Exchange 存储之间关联数据。A service application is usually a background job built into an existing application that extends to Exchange to correlate data between the system and the Exchange store. 服务应用程序通常没有用户界面,使用模拟或 OAuth 进行身份验证和访问。Service applications typically do not have a user interface and use impersonation or OAuth for authentication and access. 创建服务帐户以模拟用户在 EWS 服务应用程序中很常见,因为您可以授予单个帐户以模拟一组用户并对这些帐户执行邮箱操作。Creating a service account to impersonate users is common in EWS service apps because you can grant a single account permission to impersonate a set of users and perform mailbox operations for those accounts. 例如,EWS 服务应用程序可以使用服务帐户和模拟在 CRM 解决方案和 Exchange 通讯组中的市场营销列表之间同步数据。For example, an EWS service application can synchronize data between marketing lists in a CRM solution and Exchange distribution groups by using a service account and impersonation.

另请参阅See also