4.2.1 Example of ChangeOptionalFeature
In this section, there is an example of a ChangeOptionalFeature request and a ChangeOptionalFeature response.
ChangeOptionalFeature SOAP request:
-
<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/ChangeOptionalFeature</wsa:Action> <ca:Server xmlns:ca="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions" xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions">ldap:389</ca:Server> <wsa:MessageID>urn:uuid:f7ed5b9b-7376-4c6c-9d31-5a3a31c2e472</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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <ChangeOptionalFeatureRequest xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"> <DistinguishedName>CN=Partitions,CN=Configuration,DC=fabrikam,DC=com</DistinguishedName> <Enable>true</Enable> <FeatureId>766ddcd8-acd0-445e-f3b9-a7f9b6744f2a</FeatureId> </ChangeOptionalFeatureRequest> </soapenv:Body> </soapenv:Envelope>
ChangeOptionalFeature SOAP response:
-
<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/ChangeOptionalFeatureResponse</wsa:Action> <wsa:RelatesTo>urn:uuid:f7ed5b9b-7376-4c6c-9d31-5a3a31c2e472</wsa:RelatesTo> <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</wsa:To> </soapenv:Header> <soapenv:Body> <ChangeOptionalFeatureResponse xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory/CustomActions"></ChangeOptionalFeatureResponse> </soapenv:Body> </soapenv:Envelope>