Skip to content

Commit

Permalink
fix determining the response body tag name
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Doronin <[email protected]>
  • Loading branch information
Andrey Doronin committed Dec 4, 2022
1 parent 280fd8d commit 2220ebd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2220ebd

Please sign in to comment.