Skip to content

Commit f90f2be

Browse files
authoredNov 18, 2016
Merge pull request #40 from bhoriuchi/issue-37
Thank you for the PR. This fixes #37
2 parents 0acc949 + b5ac444 commit f90f2be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/client.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ class Client extends Base {
301301
var outputBodyDescriptor = operationDescriptor.output.body;
302302
var outputHeadersDescriptor = operationDescriptor.output.headers;
303303

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

0 commit comments

Comments
 (0)