4.2.2 Example of GetADDomain

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

GetADDomain SOAP request:

 <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/GetADDomain</wsa:Action>
     <ca:Server
         xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"
         xmlns:ca="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">ldap:389</ca:Server>
     <wsa:MessageID>urn:uuid:d4f595a4-0437-40e8-9f2e-48cea7709acc</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.fabrikam.com:9389/ActiveDirectoryWebServices/Windows/TopologyManagement</wsa:To>
   </soapenv:Header>
   <soapenv:Body
     xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <GetADDomainRequest xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"></GetADDomainRequest>
   </soapenv:Body>
 </soapenv:Envelope>

GetADDomain 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/GetADDomainResponse</wsa:Action>
     <wsa:RelatesTo>urn:uuid:d4f595a4-0437-40e8-9f2e-48cea7709acc</wsa:RelatesTo>
     <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <GetADDomainResponse
         xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">
       <Domain
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <DistinguishedName>DC=fabrikam,DC=com</DistinguishedName>
         <Name>fabrikam</Name>
         <ObjectClass>domainDNS</ObjectClass>
         <ObjectGuid>cd971818-a64e-4c56-b42b-55deff480ad3</ObjectGuid>
         <ObjectTypes
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <sera:string>top</sera:string>
           <sera:string>domain</sera:string>
           <sera:string>domainDNS</sera:string>
         </ObjectTypes>
         <ReferenceServer>fabrikam.com</ReferenceServer>
         <DNSRoot>fabrikam.com</DNSRoot>
         <DeletedObjectsContainer>CN=Deleted Objects,DC=fabrikam,DC=com</DeletedObjectsContainer>
         <LostAndFoundContainer>CN=LostAndFound,DC=fabrikam,DC=com</LostAndFoundContainer>
         <QuotasContainer>CN=NTDS Quotas,DC=fabrikam,DC=com</QuotasContainer>
         <ReadOnlyReplicaDirectoryServer xsi:nil="true"
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></ReadOnlyReplicaDirectoryServer>
         <ReplicaDirectoryServer
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <sera:string>server01.fabrikam.com</sera:string>
         </ReplicaDirectoryServer>
         <SubordinateReferences
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <sera:string>DC=ForestDnsZones,DC=fabrikam,DC=com</sera:string>
           <sera:string>DC=DomainDnsZones,DC=fabrikam,DC=com</sera:string>
           <sera:string>CN=Configuration,DC=fabrikam,DC=com</sera:string>
         </SubordinateReferences>
         <AllowedDNSSuffixes xsi:nil="true"
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></AllowedDNSSuffixes>
         <AppliedGroupPolicies
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
           <sera:string>CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=fabrikam,DC=com</sera:string>
         </AppliedGroupPolicies>
         <ChildDomains xsi:nil="true"
             xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></ChildDomains>
         <ComputersContainer>CN=Computers,DC=fabrikam,DC=com</ComputersContainer>
         <DomainControllersContainer>OU=Domain Controllers,DC=fabrikam,DC=com</DomainControllersContainer>
         <DomainMode>3</DomainMode>
         <DomainSID>AQQAAAAAAAUVAAAARAtI/J1BHmmbFJPq</DomainSID>
         <ForeignSecurityPrincipalsContainer>CN=ForeignSecurityPrincipals,DC=fabrikam,DC=com</ForeignSecurityPrincipalsContainer>
         <Forest>fabrikam.com</Forest>
         <InfrastructureMaster>server01.fabrikam.com</InfrastructureMaster>
         <LastLogonReplicationInterval xsi:nil="true"></LastLogonReplicationInterval>
         <ManagedBy xsi:nil="true"></ManagedBy>
         <NetBIOSName>FABRIKAM</NetBIOSName>
         <PDCEmulator>server01.fabrikam.com</PDCEmulator>
         <ParentDomain xsi:nil="true"></ParentDomain>
         <RIDMaster>server01.fabrikam.com</RIDMaster>
         <SystemsContainer>CN=System,DC=fabrikam,DC=com</SystemsContainer>
         <UsersContainer>CN=Users,DC=fabrikam,DC=com</UsersContainer>
       </Domain>
     </GetADDomainResponse>
   </soapenv:Body>
 </soapenv:Envelope>

GetADDomain SOAP fault 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/Data/fault
     </wsa:Action>
     <wsa:RelatesTo>urn:uuid:a176367c-7cf6-4df9-a6ac-aa4ab37bfb05</wsa:RelatesTo>
     <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <soapenv:Fault>
       <soapenv:Code>
         <soapenv:Value>soapenv:Receiver</soapenv:Value>
         <soapenv:Subcode>
           <soapenv:Value xmlns:ca="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">ca:GetADDomainFault</soapenv:Value>
         </soapenv:Subcode>
       </soapenv:Code>
       <soapenv:Reason>
         <soapenv:Text xml:lang="en-US">The lightweight directory access protocol (LDAP) operation failed.</soapenv:Text>
       </soapenv:Reason>
       <soapenv:Detail>
         <GetADDomainFault
           xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <ArgumentError xsi:nil="true"></ArgumentError>
           <DirectoryError>
             <ErrorCode>81</ErrorCode>
             <ExtendedErrorMessage xsi:nil="true"></ExtendedErrorMessage>
             <MatchedDN xsi:nil="true"></MatchedDN>
             <Message>The LDAP server is unavailable.</Message>
             <Referral xsi:nil="true" xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Referral>
             <ShortMessage>ELdap</ShortMessage>
             <Win32ErrorCode>8250</Win32ErrorCode>
           </DirectoryError>
           <Error xsi:nil="true"></Error>
           <ShortError xsi:nil="true"></ShortError>
         </GetADDomainFault>
       </soapenv:Detail>
     </soapenv:Fault>
   </soapenv:Body>
 </soapenv:Envelope>
Show: