We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0acc949 + b5ac444 commit f90f2beCopy full SHA for f90f2be
src/client.js
@@ -301,7 +301,9 @@ class Client extends Base {
301
var outputBodyDescriptor = operationDescriptor.output.body;
302
var outputHeadersDescriptor = operationDescriptor.output.headers;
303
304
- result = obj.Body[outputBodyDescriptor.elements[0].qname.name];
+ if (outputBodyDescriptor.elements.length) {
305
+ result = obj.Body[outputBodyDescriptor.elements[0].qname.name];
306
+ }
307
// RPC/literal response body may contain elements with added suffixes I.E.
308
// 'Response', or 'Output', or 'Out'
309
// This doesn't necessarily equal the ouput message name. See WSDL 1.1 Section 2.4.5
0 commit comments