EWS-响应中的ServerVersionInfo版本属性 [英] EWS - ServerVersionInfo Version attribute in responses

查看:53
本文介绍了EWS-响应中的ServerVersionInfo版本属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据此:

http://msdn.microsoft.com /en-us/library/dd633705(v=exchg.80).aspx

在每个EWS响应中,由ServerVersionInfo元素指示生成响应的Exchange版本.下面的示例显示一个ServerVersionInfo元素,该元素表示来自Exchange 2010 SP1的响应.

In each EWS response, the version of Exchange that generated the response is indicated by the ServerVersionInfo element. The following example shows a ServerVersionInfo element that represents a response from Exchange 2010 SP1.

该页面上的示例具有:

Version ="Exchange2010_SP1"

Version="Exchange2010_SP1"

我目前正在使用Exchange Online帐户,在EWS服务器响应中看到的值是:

I'm currently working with an Exchange Online account, and the value I'm seeing in EWS server responses is:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ServerVersionInfo [xmlns' snipped]
MajorVersion="15" MinorVersion="0" MajorBuildNumber="800" MinorBuildNumber="16"
Version="V2_6"/>
  </s:Header>

所以它是Version ="V2_6",在EWS参考中找不到.

So it's Version="V2_6", which I can't find in the EWS reference.

1-这是Exchange Online所期望的吗?那Office 365帐户又如何呢?

1 - Is this to be expected for Exchange Online? What about Office 365 accounts?

2-V2_6在以下哪个位置适合:Exchange2007,Exchange2007_SP1,Exchange2010,.... Exchange2013?

2 - Where does V2_6 fit into the sequence of: Exchange2007, Exchange2007_SP1, Exchange2010, .... Exchange2013?

换句话说,当我在服务器响应中看到Version ="V2_6"时,我可以在请求的< RequestServerVersion>中使用哪种架构版本?

In other words, when I see Version="V2_6" in server responses, what schema version can I use in my requests' <RequestServerVersion>?

推荐答案

我有在答案中引用"Exchange for Office 365 [ed: Exchange Online ]具有自己的生命(自定义版本),因此除主要版本外,它不遵循Exchange 2013版本."

"Exchange for Office 365 [ed: Exchange Online] has its own life (custom build) so it does not follow the Exchange 2013 version except for the major version."

向Office 365 EWS API发出请求时,可以使用Exchange2013 RequestServerVersion.如果您不想这样做:
FreeRangeEggs在他的答案(此处)中建议依赖MajorVersion,但Glen Scales(那里)的答案则表示要使用AutoDiscovery来检测支持哪些模式.

You can use the Exchange2013 RequestServerVersion when doing requests to the Office 365 EWS API. If you don't want to do that:
FreeRangeEggs suggest in his answer (here) to rely on MajorVersion, but the answer from Glen Scales (there) says to use AutoDiscovery to detect what schemas are supported.

这篇关于EWS-响应中的ServerVersionInfo版本属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆