EWS SOAP从ID获取ChangeKey?

时间:2011-03-08 13:19:35

标签: soap exchangewebservices

使用SOAP是否可以获取由Item ID标识的项目的ChangeKey?

欢呼声

1 个答案:

答案 0 :(得分:1)

GetItem可能就是你要找的东西。回复将包括ChangeKey。

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2007_SP1" />
    <t:TimeZoneContext>
      <t:TimeZoneDefinition Id="GMT Standard Time" />
    </t:TimeZoneContext>
  </soap:Header>
  <soap:Body>
    <m:GetItem>
      <m:ItemShape>
        <t:BaseShape>IdOnly</t:BaseShape>
      </m:ItemShape>
      <m:ItemIds>
        <t:ItemId Id="AAMkADY..." />
      </m:ItemIds>
    </m:GetItem>
  </soap:Body>
</soap:Envelope>