Description
Hi !
Beginner with zeep here, I'm trying to make a simple SOAP request to an external web service (eur lex, the EU law directory). It seems like the request is working, I added logging and tried adding a custom plugin to log the output that I received back. The response seems fine (at least among all the bloat I can see the result that I expected to receive back).
However, after the answer being logged, my code is hanging forever and my computer's fans get pretty loud, as if stuck somewhere. When interrupting the code, it always seem to be somewhere around zeep\xsd\elements\indicators.py
.
When adding setting raw_response=True
, I get the raw content fine and everything works. I am then able to parse the XML myself using lxml
.
PS :
XML Response (saved as .txt for github) : envelope.txt
Response saved using the following custom plugin :
class MyLoggingPlugin(Plugin):
def ingress(self, envelope, http_headers, operation):
with open('envelope.xml', 'wb') as f:
f.write(etree.tostring(envelope, pretty_print=True))
return envelope, http_headers
def egress(self, envelope, http_headers, operation, binding_options):
return envelope, http_headers