4.2 WS-Transfer LDAP v3 Controls Extensions Delete Example

In this example, the directory object created previously is deleted using a [WXFR] delete operation. During the deletion, the LDAP_SERVER_TREE_DELETE_OID control ([MS-ADTS] section 3.1.1.3.4.1.15) is added to the request, which causes the server to recursively delete the entire subtree of objects located under the object specified in the request (including the specified object). The response to this operation could be seen in the response message.

SOAP Request Message

 <soapenv:Envelope
       xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
       xmlns:wsa="http://www.w3.org/2005/08/addressing"
       xmlns:ad="http://schemas.microsoft.com/2008/1/ActiveDirectory"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soapenv:Header>
     <wsa:Action soapenv:mustUnderstand="1">
 http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</wsa:Action>
     <ad:objectReferenceProperty>
       51419d0c-cadd-4b70-9c8d-8a73fdd2d32a
     </ad:objectReferenceProperty>
     <ad:instance xmlns="http://schemas.microsoft.com/2008/1/
 ActiveDirectory">ldap:389</ad:instance>
     <wsa:MessageID>
         urn:uuid:c694c005-75a2-4cb1-84f9-8d6890da9958
     </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/
 Resource</wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <ad:controls xmlns:ad='http://schemas.microsoft.com/2008/1/
 ActiveDirectory'>
       <ad:control type="1.2.840.113556.1.4.805" 
 criticality="true" />
     </ad:controls>
   </soapenv:Body>
 </soapenv:Envelope>
  

SOAP Response 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.xmlsoap.org/ws/2004/09/transfer/DeleteResponse
 </wsa:Action>
     <wsa:RelatesTo>urn:uuid:c694c005-75a2-4cb1-84f9-8d6890da9958
 </wsa:RelatesTo>
     <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/
 addressing/anonymous</wsa:To>
   </soapenv:Header>
   <soapenv:Body />
 </soapenv:Envelope>
  
Show: