From 2220ebd1850b832a59047d904e1ee0964f0867c3 Mon Sep 17 00:00:00 2001 From: Andrey Doronin Date: Mon, 5 Dec 2022 00:57:44 +0300 Subject: [PATCH] fix determining the response body tag name Signed-off-by: Andrey Doronin --- src/client.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client.js b/src/client.js index 0652ae76..57f4dfab 100644 --- a/src/client.js +++ b/src/client.js @@ -339,9 +339,7 @@ class Client extends Base { var outputBodyDescriptor = operationDescriptor.output.body; var outputHeadersDescriptor = operationDescriptor.output.headers; - if (outputBodyDescriptor.elements.length) { - result = obj.Body[outputBodyDescriptor.elements[0].qname.name]; - } + result = obj.Body[outputBodyDescriptor.qname.name]; // RPC/literal response body may contain elements with added suffixes I.E. // 'Response', or 'Output', or 'Out' // This doesn't necessarily equal the ouput message name. See WSDL 1.1 Section 2.4.5