Start using web services in ExchangeStart using web services in Exchange

查找信息,以帮助你开始使用 EWS 和 Exchange 中的其他 web 服务。Find information to help you get started with EWS and other web services in Exchange.

Exchange 中的 web 服务提供对存储在 exchange online 中的邮箱数据、exchange online (作为 Office 365 的一部分)和 exchange online 版本(从 exchange Server 2007 开始)的访问权限,并使您能够创建自定义应用程序,以根据组织的要求管理信息。The web services in Exchange provide access to mailbox data stored in Exchange Online, Exchange Online as part of Office 365, and on-premises versions of Exchange starting with Exchange Server 2007, and enable you to create custom applications that you can use to manage that information according to the requirements of your organization. 虽然您可以创建的 EWS 和 web 服务应用程序的范围几乎是无限的,但某些基本概念适用于任何类型的应用程序。While the range of EWS and web service applications that you can create is practically infinite, certain fundamental concepts apply for any type of application. 本节提供有关您需要熟悉的基本概念的信息,以便开始在 Exchange 中使用 EWS 和其他 web 服务。This section provides information about the fundamental concepts you need to be familiar with in order to start using EWS and other web services in Exchange.

构建你的知识Build your knowledge

无论您是使用 .NET Framework 还是其他平台开发 web 服务应用程序,您都需要先了解一些重要概念,然后再开始开发项目。Whether you use the .NET Framework or another platform to develop your web service application, you will want to understand some important concepts before you begin your development project.

表1。Web 服务概念Table 1. Web services concepts

概念Concept 摘要Summary
体系结构Architecture
了解 EWS 在 Exchange 体系结构中的工作方式以及它使用的协议。Learn about how EWS works within the Exchange architecture and the protocols it uses.
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 访问EWS access
Exchange 管理员可以限制整个组织、单个用户和各个应用程序对 EWS 的全局访问。Exchange administrators can limit access to EWS globally for the entire organization, for individual users, and to individual applications. 了解哪种访问级别适合您。Find out which access level is right for you.
SetupSetup
查找有关您需要完成的任务的信息,以便创建使用 EWS 托管 API 或 EWS 与 Exchange 进行通信的应用程序。Find information about the tasks you need to complete in order to create applications that use the EWS Managed API or EWS to communicate with Exchange.
身份验证Authentication
了解用于连接到 Exchange Online 和本地 Exchange 的身份验证选项。Learn about the authentication options for connecting to Exchange Online and Exchange on-premises.
自动发现Autodiscover
了解您可以用来发现 URL 终结点的一组服务,用户的帐户可以通过 EWS 访问信息。Learn about the set of services that you can use to discover the URL endpoint where a user's account can access information via EWS.
邮箱服务器Mailbox server
了解对 EWS 客户端提供的信息的主要存储库。Find out about the primary repository of information made available to an EWS client. EWS 可以访问存储在 Active Directory 域服务(AD DS)中的一组有限的信息。EWS has access to a limited set of information stored in Active Directory Domain Services (AD DS).
Outlook 和 EWS 的邮件应用程序Mail apps for Outlook and EWS
查找有关 Outlook 相关邮件应用程序及其在 Exchange 中如何使用 EWS 的信息。Find information about mail apps for Outlook and how they work with EWS in Exchange.
Office 365 REST Api 的邮件、 日历和联系人Office 365 REST APIs for mail, calendars, and contacts
了解可用于将 Exchange Online 中的邮件、日历和联系人作为 Office 365 的一部分进行访问的 Office 365 Api。Learn about the Office 365 APIs that you can use to access mail, calendars, and contacts in Exchange Online as part of Office 365.
EWS Managed APIThe EWS Managed API
查找有关适用于 .NET Framework 开发人员的首选客户端 API 的信息。Find information about the preferred client API for .NET Framework developers.
EWSEWS
查找有关使用 EWS XML 请求和响应创建您的第一个应用程序的信息。Find information about creating your first application by using EWS XML requests and responses.
Exchange 产品版本中的 EWS 功能EWS functionality in Exchange product versions
了解 Exchange 版本中提供了哪些 EWS 功能。Find out what EWS functionality is available in version of Exchange.
跟踪和故障排除Trace and troubleshoot
了解如何跟踪 EWS 请求和响应,以便解决 EWS 托管 API 应用程序中的错误。Find out how to trace EWS requests and responses in order to troubleshoot errors in your EWS Managed API application.

创建您的第一个应用程序Create your first application

如果你已准备好了解编写你的第一个 .NET Framework 或 EWS 客户端应用程序的业务,请参阅开始使用 Ews 托管 API 客户端应用程序开始使用 ews 客户端应用程序。If you're ready to get to the business of writing your first .NET Framework or EWS client application, see Get started with EWS Managed API client applications or Get started with EWS client applications.

获取代码示例Get code samples

若要查找介绍如何使用 EWS 和 Exchange 中的其他 web 服务的代码示例和示例,请参阅以下资源:To find code samples and examples that show you how to work with EWS and other web services in Exchange, see the following resources:

博客、代码演示网站和论坛中提供了许多其他示例。Many other samples are available in blogs, code demonstration sites, and forums. 此外,我们还建议您下载EWSEditorWe also recommend that you download the EWSEditor. 此项目实现大部分 EWS 功能;你可以在此处找到所有核心 EWS 功能的示例。This project implements most of the EWS functionality; you can find examples of all the core EWS functionality here.

如果您不是 .NET Framework 开发人员,则可以找到多个客户端库,其中包含使用 Java、Python、PHP 和其他语言的 EWS 开发。If you're not a .NET Framework developer, you can find many client libraries out there for EWS development that use Java, Python, PHP, and other languages.

提出问题并解决问题Ask questions and solve problems

是否需要帮助才能完成操作,但未找到答案?Need help getting things done and you're not finding answers? 您可以搜索Exchange 开发论坛,了解是否有人遇到并解决了相同的问题。You can search the Exchange Development forum to find out whether someone else has encountered and resolved the same issue. 一社区参与者回答了有关 Exchange 开发的数百个问题。A community of contributors have answered hundreds of questions about Exchange development. 您还可以查找第三方网站、论坛和博客,其中包含 Exchange 开发,并且可能具有您要查找的解决方案。You can also find third-party sites, forums, and blogs that cover Exchange development and might have the solution you're looking for.

如果你需要其他帮助,请联系Microsoft 支持部门。Contact Microsoft support if you need additional assistance. Exchange 开发人员支持团队为经验丰富的专业人员配备了可帮助回答有关 Exchange 开发的问题的人员。The Exchange Developer support team is staffed with seasoned professionals who can help answer your questions about Exchange development.

另请参阅See also