Function: soap-encode-value

soap-encode-value is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-encode-value VALUE TYPE)

Documentation

Encode the VALUE using TYPE.

The resulting XML data is inserted in the current buffer at (point)/

TYPE is one of the soap-*-type structures which defines how VALUE is to be encoded. This is a generic function which finds an encoder function based on TYPE and calls that encoder to do the work.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-encode-value (value type)
  "Encode the VALUE using TYPE.
The resulting XML data is inserted in the current buffer
at (point)/

TYPE is one of the soap-*-type structures which defines how VALUE
is to be encoded.  This is a generic function which finds an
encoder function based on TYPE and calls that encoder to do the
work."
  (let ((encoder (get (soap-type-of type) 'soap-encoder)))
    (cl-assert encoder nil "no soap-encoder for %s type" (soap-type-of type))
    (funcall encoder value type))
  (when (soap-element-namespace-tag type)
    (add-to-list 'soap-encoded-namespaces (soap-element-namespace-tag type))))