summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2010-01-07 23:17:42 +0000
committerjortel <devnull@localhost>2010-01-07 23:17:42 +0000
commitdb65417513c25da9571ca649fd8f374605c2a260 (patch)
tree3ef48065db7c48e215263254e3b49e88e9fc488c
parenta3f6cc56dc582f5f3f5c46b72a44a38597c1ff2f (diff)
downloadsuds-db65417513c25da9571ca649fd8f374605c2a260.tar.gz
Tune the document/literal encode() method to set the xsi:type only when the real type sent (and is derived) is different then the specified (base) type. In other words, we're only typing extension (derived) when the server is expecting the base.
-rw-r--r--suds/mx/literal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/suds/mx/literal.py b/suds/mx/literal.py
index 4c43b47..706d14a 100644
--- a/suds/mx/literal.py
+++ b/suds/mx/literal.py
@@ -186,6 +186,8 @@ class Typed(Core):
return
if not content.real.extension():
return
+ if content.type.resolve() == content.real:
+ return
ns = None
name = content.real.name
if self.options.xstq: