4.4 Installing a Mail App

This example of the InstallApp operation, as defined in section 3.1.4.5, shows how the client sends a request to the server to install a mail add-in. The manifest file of the mail add-in has been abbreviated for readability.

 <?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:InstallApp>
       <m:Manifest>PE9mZmljZUFwcCB4bWxucz0iaHR0cDovL3NjaG=</m:Manifest>
     </m:InstallApp>
   </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">
     <InstallAppResponse ResponseClass="Success" 
         xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <ResponseCode>NoError</ResponseCode>
     </InstallAppResponse>
   </s:Body>
 </s:Envelope>