4.1 Archiving an Item

 This example of the ArchiveItem operation, as defined in section 3.1.4.1, shows how a client can archive items from the Inbox folder.

 <?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"
            xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
   <soap:Header>
     <t:RequestServerVersion Version="Exchange2013"/>
   </soap:Header>
   <soap:Body>
     <m:ArchiveItem>
       <m:ArchiveSourceFolderId>
         <t:DistinguishedFolderId Id="inbox"/>
       </m:ArchiveSourceFolderId>
       <m:ItemIds>
         <t:ItemId Id="AQMkAGVmNDAyODMwLTNkMzMALTRhMGQtYTRlOS1kODU3NjkwMAE2MGQARgAAA2L1bNf8ooZNtO4guk3auRYHALkzPvMoJY1FjWrkRuQQcK0AAAMOAAAAuTM+8ygljUWNauRG5BBwrQAAAxoAAAA=" ChangeKey="CQAAABYAAAC5Mz7zKCWNRY1q5EbkEHCtAAAAAAB7"/>
       </m:ItemIds>
     </m:ArchiveItem>
   </soap:Body>
 </soap:Envelope>

The server constructs the following successful response to the request and sends it to the client.

 <?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">
     <m:ArchiveItemResponse    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" 
 xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
       <m:ResponseMessages>
         <m:ArchiveItemResponseMessage ResponseClass="Success">
           <m:ResponseCode>NoError</m:ResponseCode>
           <m:Items/>
         </m:ArchiveItemResponseMessage>
       </m:ResponseMessages>
     </m:ArchiveItemResponse>
   </s:Body>
 </s:Envelope>
Show: