1

我受限于使用 XML soap 请求来获取和设置使用 Exchange 2010 EWS 的消息的星标状态。

如何获得消息的“已加星标”或“收藏”状态?设置它也很好!

4

1 回答 1

1

以下将使用 EWS 2010 的 XML 返回消息的星标状态:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2010" />
  </soap:Header>
  <soap:Body>
    <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <ItemShape>
        <t:BaseShape>Default</t:BaseShape>
        <t:IncludeMimeContent>true</t:IncludeMimeContent>
        <t:AdditionalProperties>
          <t:FieldURI FieldURI="item:Subject" />
          <t:ExtendedFieldURI PropertyTag="0x1090" PropertyType="Integer"/>
        </t:AdditionalProperties>
      </ItemShape>
      <ItemIds>
        <t:ItemId Id="AAMkADg5MmFjNTViLTYwODUtNGNmYi04MzhjLTczZTdkOTZmYjllNwBGAAAAAABFQx5qtI0+R7P3jIlj8lBrBwCGvs35WFEvTaNeDfAlU93XAAAAFfBdAACGvs35WFEvTaNeDfAlU93XAAAAF4LGAAA=" ChangeKey="CQAAABYAAACGvs35WFEvTaNeDfAlU93XAAAAF+bq"/>
      </ItemIds>
    </GetItem>
  </soap:Body>
</soap:Envelope>
于 2013-10-04T19:32:18.887 回答