4.3 WS-Enumerate Directory Services Extension "Pull" Request Example

This example demonstrates a [MS-WSDS] Pull request. In this SOAP request message, the requestor is specifying the enumeration context in the form of GUID and the number of elements (wsen:maxElements) it is requesting out of the resultant objects at a time in the Pull response.

 <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/enumeration/Pull</wsa:Action>
     <wsa:To soapenv:mustUnderstand="1">
       net.tcp://server01.fabrikam.com:9389/ActiveDirectoryWebServices/Windows/Enumeration
     </wsa:To>
      <wsa:MessageID>
            urn:uuid:b22747a9-ca15-41de-8c91-5a51bd88669c
       </wsa:MessageID>
       <wsa:ReplyTo>
          <wsa:Address>
            http://www.w3.org/2005/08/addressing/anonymous
           </wsa:Address>
      </wsa:ReplyTo>
   </soapenv:Header>
   <soapenv:Body>
     <wsen:Pull xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration">
       <wsen:EnumerationContext>cda3e08b-cec1-42bb-8245-7cb6235a24b8</wsen:EnumerationContext>
       <wsen:MaxTime>PT10S</wsen:MaxTime>
       <wsen:MaxElements>2</wsen:MaxElements>
     </wsen:Pull>
   </soapenv:Body>
 </soapenv:Envelope>