Skip to content

Client hanging forever after receiving the reponse #1457

Open

Description

@sebpiq

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

Activity

  1. tohuuuuu commented on Sep 1, 2026

    @tohuuuuu

    I'm stuck with the same issue - while reading around, I've noticed that the resulting Eur-Lex Webservice XML doesn't validate against the XSD. Maybe it would be useful to have a setting that disables validation?

    EDIT:
    Eur-Lex Webservice works also with raw_response=False (default) when restricting the Webservice output using an appropriate SELECT clause (i.e. a SELECT that doesn't include the fields /searchResults/result/content/NOTICE/MANIFESTATION/MANIFESTATION_OFFICIAL-JOURNAL_PART_PAGES_TOTAL and /searchResults/result/content/NOTICE]/WORK/ WORK_CREATED_BY_AGENT/type). For example, SELECT TI FROM ... should work with zeep and default settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions