Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felipezago
Copy link

@felipezago felipezago commented Jul 5, 2023

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

Copy link

@mileo mileo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants