4.2.3 Example of GetADDomainController

In this section, there is an example of a GetADDomainController request and a GetADDomainController response.

GetADDomainController SOAP request message:

 <soapenv:Envelope
     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
     xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <soapenv:Header>
     <wsa:Action soapenv:mustUnderstand="1">http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions/TopologyManagement/GetADDomainController</wsa:Action>
     <ca:Server
         xmlns:ca="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">ldap:389</ca:Server>
     <wsa:MessageID>urn:uuid:9661bd85-c47f-4e62-bca6-da5c27ec60bf</wsa:MessageID>
     <wsa:ReplyTo>
       <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
     </wsa:ReplyTo>
     <wsa:To soapenv:mustUnderstand="1">net.tcp://server01:9389/ActiveDirectoryWebServices/Windows/TopologyManagement</wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <GetADDomainControllerRequest xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">
       <NtdsSettingsDN
         xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <sera:string>CN=NTDS Settings,CN=server01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=fabrikam,DC=com</sera:string>
       </NtdsSettingsDN>
     </GetADDomainControllerRequest>
   </soapenv:Body>
 </soapenv:Envelope>

GetADDomainController SOAP response message:

 <soapenv:Envelope
     xmlns:wsa="http://www.w3.org/2005/08/addressing"
     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header>
     <wsa:Action soapenv:mustUnderstand="1">http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions/TopologyManagement/GetADDomainControllerResponse</wsa:Action>
     <wsa:RelatesTo>urn:uuid:9661bd85-c47f-4e62-bca6-da5c27ec60bf</wsa:RelatesTo>
     <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <GetADDomainControllerResponse xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">
       <DomainControllers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <ActiveDirectoryDomainController>
           <DefaultPartition>DC=fabrikam,DC=com</DefaultPartition>
           <HostName>server01.fabrikam.com</HostName>
           <InvocationId>a5671348-acc7-48b9-b9e5-249bc35a4aca</InvocationId>
           <LdapPort>389</LdapPort>
           <NTDSSettingsObjectDN>CN=NTDS Settings,CN=server01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=fabrikam,DC=com</NTDSSettingsObjectDN>
           <Name>SERVER01</Name>
           <OperationMasterRole>
             <ActiveDirectoryOperationMasterRole>SchemaMaster</ActiveDirectoryOperationMasterRole>
             <ActiveDirectoryOperationMasterRole>DomainNamingMaster</ActiveDirectoryOperationMasterRole>
             <ActiveDirectoryOperationMasterRole>PDCEmulator</ActiveDirectoryOperationMasterRole>
             <ActiveDirectoryOperationMasterRole>RIDMaster</ActiveDirectoryOperationMasterRole>
             <ActiveDirectoryOperationMasterRole>InfrastructureMaster</ActiveDirectoryOperationMasterRole>
           </OperationMasterRole>
           <Partitions xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
             <sera:string>CN=Schema,CN=Configuration,DC=fabrikam,DC=com</sera:string>
             <sera:string>CN=Configuration,DC=fabrikam,DC=com</sera:string>
             <sera:string>DC=fabrikam,DC=com</sera:string>
           </Partitions>
           <ServerObjectDN>CN=server01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=fabrikam,DC=com</ServerObjectDN>
           <ServerObjectGuid>2836232f-a020-446a-a15d-94131dd8003c</ServerObjectGuid>
           <Site>Default-First-Site-Name</Site>
           <SslPort>636</SslPort>
           <ComputerDN>CN=server01,OU=Domain Controllers,DC=fabrikam,DC=com</ComputerDN>
           <Domain>fabrikam.com</Domain>
           <Enabled>true</Enabled>
           <Forest>fabrikam.com</Forest>
           <IsGlobalCatalog>true</IsGlobalCatalog>
           <IsReadOnly>false</IsReadOnly>
           <OSHotFix xsi:nil="true"></OSHotFix>
           <OSName>Windows Server 2008 R2 Enterprise</OSName>
           <OSServicepack xsi:nil="true"></OSServicepack>
           <OSVersion>6.1 (7068)</OSVersion>
         </ActiveDirectoryDomainController>
       </DomainControllers>
     </GetADDomainControllerResponse>
   </soapenv:Body>
 </soapenv:Envelope>
Show: