0c1d56dde5
When querying an enumeration using the WSMAN enumerate method, not all entries are returned if there are more than max_elems (default of 100) in the enumeration. When querying an enumeration, the first response returns <wsman:Items> in the body. Successive pulls, however, contain <wsen:Items>. The old code always queried for <wsen:Items>, which caused the first batch of attributes to be dropped only when the number of entries in the enumeration exceeded max_elems. This patch queries for <wsman:Items> in the first response, and for <wsen:Items> in successive responses. Change-Id: I2e9036b562c7d7ba5af188dd552b6c67388bb02c Closes-Bug: #1659052
23 lines
995 B
XML
23 lines
995 B
XML
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
|
|
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
|
|
xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
|
|
xmlns:n1="http://FooResource">
|
|
<s:Header>
|
|
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
<wsa:Action>http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse</wsa:Action>
|
|
<wsa:RelatesTo>uuid:89afbea0-2005-1005-8002-fd0aa2bdb228</wsa:RelatesTo>
|
|
<wsa:MessageID>uuid:babd467b-2009-1009-8096-fcc71555dbe0</wsa:MessageID>
|
|
</s:Header>
|
|
<s:Body>
|
|
<wsen:EnumerateResponse>
|
|
<wsen:EnumerationContext>enum-context-uuid</wsen:EnumerationContext>
|
|
<wsman:Items>
|
|
<n1:FooResource>
|
|
<n1:InstanceID>1</n1:InstanceID>
|
|
</n1:FooResource>
|
|
</wsman:Items>
|
|
</wsen:EnumerateResponse>
|
|
</s:Body>
|
|
</s:Envelope>
|