Enrico,
On Tue, 27 Mar 2012 08:59:38 -0400, Chris wrote:
Did you try the patch mentioned in https://fedorahosted.org/suds/ticket/239?
Thanks for the pointer. I did try the patch but it doesn't change anything. While I receive the same exception "maximum recursion depth exceeded" as in the ticket, in my case it's caused at another place in the code. Suds parses my WSDL properly, it's just the pickling for caching which causes the exception :(.
From that same ticket, you may have seen an ugly hack that got me
around a similar recursion bug -- https://fedorahosted.org/suds/ticket/239#comment:19
Basically, just manually set the maximum recursion depth to something sufficiently high before calling Suds...
import sys sys.setrecursionlimit(10000)
If you want to experiment with some different limits, it might help you figure out if you're dealing with an infinite call chain or just a very deep one. In my case, the recursion depth seem to scale with the number of import directives in my WSDL file. It's certainly not a real solution and YMMV, but it could be worth a try.
- Chris