Export (0) Print
Expand All

4 Protocol Examples

The following is an example of a request to get the DateTimeCreated property of an item:

<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_SP1"/>
    <t:DateTimePrecision>Milliseconds</t:DateTimePrecision>
  </soap:Header>
  <soap:Body>
    <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ItemShape>
          <t:BaseShape>IdOnly</t:BaseShape>
          <t:AdditionalProperties>
            <t:FieldURI FieldURI="item:DateTimeCreated"/>
          </t:AdditionalProperties>
      </ItemShape>
      <ItemIds>
<!-- The Id of the item being retrieved -->
          <t:ItemId Id="AQMkADc4ZTU0Y2E4LWE5MjctNDNjOS1hM2QyLTEzMWE4NzhhZjRlOQBGAAAD+TBZmlf7F0ydQQFsX2N8VgcA1ouDJnFVkk2sDp7jPV6sQQAAAgEPAAAA1ouDJnFVkk2sDp7jPV6sQQAAAgk1AAAA"/>
      </ItemIds>
    </GetItem>
  </soap:Body>
</soap:Envelope>
Show:
© 2015 Microsoft