Export (0) Print
Expand All

4.2 Getting Statistics for Nonindexable Items

This example of the GetNonIndexableItemStatistics operation, as described in section 3.1.4.2, shows how the client retrieves the statistics for an item that could not be indexed from the server.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
          xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2013" />
  </soap:Header>
  <soap:Body >
    <m:GetNonIndexableItemStatistics>
      <m:Mailboxes>
        <t:LegacyDN>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=35181a742f0e47e392c8201a60d13ecf-Steve</t:LegacyDN>
      </m:Mailboxes>
      <m:SearchArchiveOnly>false</m:SearchArchiveOnly>
    </m:GetNonIndexableItemStatistics>
  </soap:Body>
</soap:Envelope>

The server sends the following successful results of the request to the client. The response shows that two items in the mailbox could not be indexed.

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ServerVersionInfo MajorVersion="15" 
                         MinorVersion="0" 
                         MajorBuildNumber="526" 
                         MinorBuildNumber="0"
                         Version="Exchange2013" 
           xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" 
           xmlns="http://schemas.microsoft.com/exchange/services/2006/types" 
           xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GetNonIndexableItemStatisticsResponse ResponseClass="Success" 
       xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ResponseCode>NoError</ResponseCode>
      <NonIndexableItemStatistics>
        <NonIndexableItemStatistic xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
          <Mailbox>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=35181a742f0e47e392c8201a60d13ecf-Steve</Mailbox>
          <ItemCount>2</ItemCount>
        </NonIndexableItemStatistic>
      </NonIndexableItemStatistics>
    </GetNonIndexableItemStatisticsResponse>
  </s:Body>
</s:Envelope>
Show:
© 2014 Microsoft