python-zeep
python-zeep copied to clipboard
[FIX] multiple nested complex types expecting "any" and receiving etree._Element input
There is an issue when the WSDL consists of multiple nested complex types and expects an "any" input, and you attempt to provide the input as an etree._Element
object.
On the render
method it was always expected that the value received was a dictionary. However, in this specific scenario, the "any" element is represented as an etree._Element, resulting in the element_value receiving the NotSet
value. As a consequence, this situation triggers an exception: zeep.exceptions.ValidationError: Missing element for Any.
The WSDL where this issue was encountered is structured as follows: