From 4e817132700f03e97aab1933a1d01945af56a2b5 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Fri, 25 Sep 2020 22:57:25 -0400 Subject: [PATCH] soap-client.el: Prevent some invalid encoding warnings * lisp/net/soap-client.el (soap-encode-xs-complex-type): Do not warn about missing non-nillable slot if type iself is optional. --- lisp/net/soap-client.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index 7425e8763fb..bb74f47a8b9 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el @@ -1716,6 +1716,7 @@ This is a specialization of `soap-encode-value' for ((and (not (eq indicator 'choice)) (= instance-count 0) (not (soap-xs-element-optional? element)) + (not (soap-xs-complex-type-optional? type)) (and (soap-xs-complex-type-p element-type) (not (soap-xs-complex-type-optional-p element-type)))) -- 2.39.5