Function: soap-encode-xs-simple-type

soap-encode-xs-simple-type is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-encode-xs-simple-type VALUE TYPE)

Documentation

Encode the VALUE according to TYPE.

The data is inserted in the current buffer at the current position.

This is a specialization of soap-encode-value for soap-xs-simple-type objects.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-encode-xs-simple-type (value type)
  "Encode the VALUE according to TYPE.
The data is inserted in the current buffer at the current
position.

This is a specialization of `soap-encode-value' for
`soap-xs-simple-type' objects."
  (soap-validate-xs-simple-type value type)
  (if (soap-xs-simple-type-is-list type)
      (progn
        (dolist (v (butlast value))
          (soap-encode-value v (soap-xs-simple-type-base type))
          (insert " "))
        (soap-encode-value (car (last value)) (soap-xs-simple-type-base type)))
    (soap-encode-value value (soap-xs-simple-type-base type))))