Skip to content

Commit 2220ebd

Browse files
author
Andrey Doronin
committed
fix determining the response body tag name
Signed-off-by: Andrey Doronin <[email protected]>
1 parent 280fd8d commit 2220ebd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/client.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ class Client extends Base {
339339
var outputBodyDescriptor = operationDescriptor.output.body;
340340
var outputHeadersDescriptor = operationDescriptor.output.headers;
341341

342-
if (outputBodyDescriptor.elements.length) {
343-
result = obj.Body[outputBodyDescriptor.elements[0].qname.name];
344-
}
342+
result = obj.Body[outputBodyDescriptor.qname.name];
345343
// RPC/literal response body may contain elements with added suffixes I.E.
346344
// 'Response', or 'Output', or 'Out'
347345
// This doesn't necessarily equal the ouput message name. See WSDL 1.1 Section 2.4.5

0 commit comments

Comments
 (0)