mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 578 forks source link

Error parsing response with body None #1277

Open jmglezvera opened 2 years ago

jmglezvera commented 2 years ago

Sorry for my english

I've a problem using zeep 4.0 or 4.1. Attached is a Python script with the problem.

When processing the response you get this error: Traceback (most recent call last): File "test.py", line 74, in <module> result = client.service._binding.process_reply( File "/Users/jmgonzalez/Library/Python/3.8/lib/python/site-packages/zeep/wsdl/bindings/soap.py", line 231, in process_reply result = operation.process_reply(doc) File "/Users/jmgonzalez/Library/Python/3.8/lib/python/site-packages/zeep/wsdl/bindings/soap.py", line 430, in process_reply return self.output.deserialize(envelope) File "/Users/jmgonzalez/Library/Python/3.8/lib/python/site-packages/zeep/wsdl/messages/soap.py", line 101, in deserialize body_result = self._deserialize_body(body) File "/Users/jmgonzalez/Library/Python/3.8/lib/python/site-packages/zeep/wsdl/messages/soap.py", line 442, in _deserialize_body result = self.body.parse(xmlelement, self.wsdl.types, context=context) AttributeError: 'NoneType' object has no attribute 'parse'

Some idea?

zeep-bug.zip