2012. May 15. kedd 23:30:00 dátummal Luc Saffre ezt írta:
Okay it is valid XML, but it's not very elegant. And there is at least one problem report that seems to be caused by some parser that doesn't like it: http://stackoverflow.com/questions/4605687/invalid-suds-envelope
I agree, and while I also saw it and felt sad every time, I never had the motivation to dig into the code and find what causes this.
I fixed this strange behaviour very easily (at least AFAICS), by changing one word in suds/bindings/binding.py, method get_message()
Thanks \o/ I'll definitely try it.
So I suggest to fix this in the trunk (unless I missed something, which is not impossible since I am rather new to XML and SOAP. In that case I'd be glad if one of you finds a few words to explain it to me).
I'm also curious about what it could break, since unfortunately SUDS doesn't have an extensive testsuite. I have some tests of my own, others might too, so let's see what comes out.
Another unfortunate thing is that the leading developer of the project hasn't responded to this list at least since May 2011, so while I'd happily include your patch in my fork -- and others might too -- trunk doesn't look promising.