Skip to content

Suggestion for large XML #22

@yilun11

Description

@yilun11

I put in a fix to handle large XML, else you get a "Invalid XML content received... huge text node" with the current lxml library. I overrode Class(Five9). I don't think it has consequences except buffer overflow attacks from Five9 (CVE-2008-4226).

class Five9_BigXML(Five9):
     def _get_authenticated_client(self, wsdl):
        """Return an authenticated SOAP client.

        Returns:
            zeep.Client: Authenticated API client.
        """
        return zeep.Client(
            wsdl % quote(self.username),
            transport=zeep.Transport(
                session=self._get_authenticated_session(),
            ),
            settings=zeep.Settings(xml_huge_tree=True)
        )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions