4.2.4 Example of GetADForest
In this section, there is an example of a GetADForest request and a GetADForest response.
GetADForest 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/GetADForest</wsa:Action> <ca:Server xmlns:ca="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">ldap:389</ca:Server> <wsa:MessageID>urn:uuid:4820e316-3396-432d-abcb-00dff37634bb</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> <GetADForestRequest xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"></GetADForestRequest> </soapenv:Body> </soapenv:Envelope>
GetADForest 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/GetADForestResponse</wsa:Action> <wsa:RelatesTo>urn:uuid:4820e316-3396-432d-abcb-00dff37634bb</wsa:RelatesTo> <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</wsa:To> </soapenv:Header> <soapenv:Body> <GetADForestResponse xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"> <Forest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ApplicationPartitions xsi:nil="true" xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></ApplicationPartitions> <CrossForestReferences xsi:nil="true" xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></CrossForestReferences> <DomainNamingMaster>server01.fabrikam.com</DomainNamingMaster> <Domains xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <sera:string>fabrikam.com</sera:string> </Domains> <ForestMode>0</ForestMode> <GlobalCatalogs xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <sera:string>server01.fabrikam.com</sera:string> </GlobalCatalogs> <Name>fabrikam.com</Name> <RootDomain>fabrikam.com</RootDomain> <SPNSuffixes xsi:nil="true" xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></SPNSuffixes> <SchemaMaster>server01.fabrikam.com</SchemaMaster> <Sites xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <sera:string>Default-First-Site-Name</sera:string> </Sites> <UPNSuffixes xsi:nil="true" xmlns:sera="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></UPNSuffixes> </Forest> </GetADForestResponse> </soapenv:Body> </soapenv:Envelope>