4.5 Disabling a Mail App

This example of the DisableApp operation, as defined in section 3.1.4.1, shows how the client sends a request to the server to disable a mail add-in. The ID of the app is in the manifest file.

 <?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" />
       <t:MailboxCulture>en-US</t:MailboxCulture>
       <t:TimeZoneContext>
          <t:TimeZoneDefinition Id="GMT Standard Time"/>
       </t:TimeZoneContext>
    </soap:Header>
    <soap:Body >
       <m:DisableApp>
          <m:ID>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</m:ID>
          <m:DisableReason>NoReason</m:DisableReason>
       </m:DisableApp>
    </soap:Body>
 </soap:Envelope>
 

The server sends the following successful response 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="556" 
                          MinorBuildNumber="14" 
                          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">
     <DisableAppResponse ResponseClass="Success" 
             xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <ResponseCode>NoError</ResponseCode>
     </DisableAppResponse>
   </s:Body>
 </s:Envelope>
Show: