Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

4.2 Getting Mailboxes With Holds

This example of the GetHoldOnMailboxes operation, as defined in section 3.1.4.2, shows how the client sends a request to the server to get all mailboxes with hold ID "HoldId2".

<?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:GetHoldOnMailboxes>
      <m:HoldId>HoldId2</m:HoldId>
    </m:GetHoldOnMailboxes>
  </soap:Body>
</soap:Envelope>

The server sends the following successful response to the client. This response returns two mailboxes.

<?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">
    <GetHoldOnMailboxesResponse ResponseClass="Success" 
        xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ResponseCode>NoError</ResponseCode>
        <MailboxHoldResult>
          <HoldId xmlns="http://schemas.microsoft.com/exchange/services/2006/types">HoldId2</HoldId>
          <Query xmlns="http://schemas.microsoft.com/exchange/services/2006/types">test</Query>
          <MailboxHoldStatuses xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
          <MailboxHoldStatus>
            <Mailbox>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=1fa841ff5e4749ba93ecc0fd98c2cadf-Willi</Mailbox>
            <Status>OnHold</Status>
            <AdditionalInfo/>
          </MailboxHoldStatus>
          <MailboxHoldStatus>
            <Mailbox>/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=aed2146adaa24ffc9f0f279917e8de95-Micha</Mailbox>
            <Status>OnHold</Status>
            <AdditionalInfo/>
          </MailboxHoldStatus>
        </MailboxHoldStatuses>
      </MailboxHoldResult>
    </GetHoldOnMailboxesResponse>
  </s:Body>
</s:Envelope>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.