Function: soap-sample-value

soap-sample-value is a byte-compiled function defined in soap-inspect.el.gz.

Signature

(soap-sample-value TYPE)

Documentation

Provide a sample value for TYPE, a WSDL type.

A sample value is a LISP value which soap-client.el will accept for encoding it using TYPE when making SOAP requests.

This is a generic function, depending on TYPE a specific function will be called.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-inspect.el.gz
;;; sample-value

(defun soap-sample-value (type)
  "Provide a sample value for TYPE, a WSDL type.
A sample value is a LISP value which soap-client.el will accept
for encoding it using TYPE when making SOAP requests.

This is a generic function, depending on TYPE a specific function
will be called."
  (let ((sample-value (get (soap-type-of type) 'soap-sample-value)))
    (if sample-value
        (funcall sample-value type)
      (error "Cannot provide sample value for type %s" (soap-type-of type)))))