python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

[FIX] multiple nested complex types expecting "any" and receiving etree._Element input

Open felipezago opened this issue 1 year ago • 0 comments

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:

image

felipezago avatar Jul 05 '23 11:07 felipezago