'Zeep best practice when parsing response

I'm creating a generic WSDL connector that will have to work with multiple WDSL enpoints.

One of the endpoints defines the WSDL response object as such:

ns0:bccOutput(err: xsd:int, errExtra: xsd:string, callerId: xsd:string, txID: xsd:string, outputXML: xsd:string)

Another endpoint defines the response as such:

ns0:bccOutput(resultCode: xsd:int, resultInfoXML: xsd:string)

Is there an easy way to build a generic "parser" that can handle this using Zeep? Can I pull out the namespace elements and parse them?

Or do I have to write specific code for each endpoint to parse the result.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source