[Major Edit based on experience since 1st post two days ago.]
I am building a Python SOAP/XML script using Suds, but am struggling to get the code to generate SOAP/X
What do you think of the following MonkeyPatch to skip complex types with a None
value?
from suds.mx.literal import Typed
old_skip = Typed.skip
def new_skip(self, content):
x = old_skip(self, content)
if not x and getattr(content.value, 'value', False) is None:
x = True
return x
Typed.skip = new_skip