aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/soap-client.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el
index 1632ee13758..40c6e62500a 100644
--- a/lisp/net/soap-client.el
+++ b/lisp/net/soap-client.el
@@ -464,8 +464,14 @@ position.
464 464
465This is a specialization of `soap-encode-value' for 465This is a specialization of `soap-encode-value' for
466`soap-xs-basic-type' objects." 466`soap-xs-basic-type' objects."
467 (let ((kind (soap-xs-basic-type-kind type))) 467 (let ((kind (soap-xs-basic-type-kind type))
468 468 ;; Handle conversions of this form:
469 ;; (Element (AttrA . "A") (AttrB . "B") "Value here")
470 ;; to:
471 ;; <ns:Element AttrA="A" AttrB="B">Value here</ns:Element>
472 ;; by assuming that if this is a list, it must have attributes
473 ;; preceding the basic value.
474 (value (if (listp value) (progn (car (last value))) value)))
469 (when (eq kind 'anyType) 475 (when (eq kind 'anyType)
470 (cond ((stringp value) 476 (cond ((stringp value)
471 (setq kind 'string)) 477 (setq kind 'string))