Skip to content

Commit 71d1832

Browse files
committed
minor
1 parent bc8c356 commit 71d1832

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spyne/decorator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ def _produce_input_message(f, params, in_message_name, in_variable_names,
108108
message = None
109109
if body_style_str == 'bare':
110110
if len(in_params) > 1:
111+
# The soap Body elt contains 1 elt (called "body entry" in the soap
112+
# standard) per method call. If bare methods were allowed to have >1
113+
# argument, it would have to be serialized as multiple body entries,
114+
# which would violate the standard. It's easy to work around this
115+
# restriction by creating a ComplexModel that contains all the
116+
# required parameters.
111117
raise LogicError("body_style='bare' can handle at most one "
112118
"function argument.")
113119

0 commit comments

Comments
 (0)