Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ Construct a `Promise<Client>` with the given WSDL file.

// async/await
var client = await soap.createClientAsync(url);
var result = await client.MyFunctionAsync(args);
console.log(await result);
var { result } = await client.MyFunctionAsync(args);
console.log(result);
```

Note: for versions of node >0.10.X, you may need to specify `{connection: 'keep-alive'}` in SOAP headers to avoid truncation of longer chunked responses.
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class Client extends EventEmitter {
if (err) {
reject(err);
} else {
resolve([result, rawResponse, soapHeader, rawRequest, mtomAttachments]);
resolve({result, rawResponse, soapHeader, rawRequest, mtomAttachments});
}
};
method(
Expand Down