It seems to me that the reason is that, in the zeep.xsd.elements.indicators module in the Sequence class in the parse_xmlelements method, the elements should be traversed not by self.elements, but by self.elements_nested. Then, my code runs without error.
There is a data schema describing the response from the service test.xsd.txt test.xsd.txt
When parsing a response from the service, zeep returns an error: "Unexpected element '.
The error is reproduced on zeep master commit 4e16b7726b5027e83d0dbe911bd45f153b7a09dc
For example: response
parses correctly;
And parsing the response
returns an error: "Unexpected element '{urn:test}error', expected 'code'".
Here is my code: test.py.txt
It seems to me that the reason is that, in the zeep.xsd.elements.indicators module in the Sequence class in the parse_xmlelements method, the elements should be traversed not by self.elements, but by self.elements_nested. Then, my code runs without error.