4.2 GetFederationInformation Operation

The two examples in this section show how to construct the request XML and response XML for the GetFederationInformation operation.

In the request, the caller is requesting domain information for the domain "contoso.com", as shown in the following example.

 <?xml version="1.0" encoding="utf-8"?>
 <soap:Envelope xmlns:exm="http://schemas.microsoft.com/exchange/services/2006/messages" 
       xmlns:ext="http://schemas.microsoft.com/exchange/services/2006/types" 
       xmlns:a="http://www.w3.org/2005/08/addressing" 
       xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Header>
     <a:RequestedServerVersion>Exchange2010</a:RequestedServerVersion>
     <a:MessageID>urn:uuid:6389558d-9e05-465e-ade9-aae14c4bcd10</a:MessageID>
     <a:Action soap:mustUnderstand="1">http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetFederationInformation</a:Action>
     <a:To soap:mustUnderstand="1">https://autodiscover.byfcxu-dom.extest.microsoft.com/autodiscover/autodiscover.svc</a:To>
     <a:ReplyTo>
       <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
     </a:ReplyTo>
   </soap:Header>
   <soap:Body>
     <GetFederationInformationRequestMessage xmlns="http://schemas.microsoft.com/exchange/2010/Autodiscover">
       <Request>
         <Domain>contoso.com</Domain>
       </Request>
     </GetFederationInformationRequestMessage>
   </soap:Body>
 </soap:Envelope>
  

The server then constructs the response XML and sends it to the client, as shown in the following example.

 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://www.w3.org/2005/08/addressing">
   <s:Header>
     <a:Action s:mustUnderstand="1">http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetFederationInformationResponse</a:Action>
      <h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/2010/A
 utodiscover" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
       <h:MajorVersion>14</h:MajorVersion>
       <h:MinorVersion>0</h:MinorVersion>
       <h:MajorBuildNumber>639</h:MajorBuildNumber>
       <h:MinorBuildNumber>20</h:MinorBuildNumber>
       <h:Version>Exchange2010</h:Version>
      </h:ServerVersionInfo>
   </s:Header>
   <s:Body>
     <GetFederationInformationResponseMessage xmlns="http://schemas.microsoft.com/exchange/2010/Autodiscover">
       <Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <ErrorCode>NoError</ErrorCode>
         <ErrorMessage/>
         <ApplicationUri>BYFCXU-DOM.EXTEST.MICROSOFT.COM</ApplicationUri>
         <Domains>
           <Domain>contoso.com</Domain>
           <Domain>europe.contoso.com</Domain>
           <Domain>americas.contoso.com</Domain>
           <Domain>contosolive.com</Domain>
         </Domains>
       </Response>
     </GetFederationInformationResponseMessage>
   </s:Body>
 </s:Envelope>