Skip to content

Commit

Permalink
Fix names only in soap messages.
Browse files Browse the repository at this point in the history
Fails with `Exception has occurred: TypeError: Cannot read properties of undefined (reading 'description')` if Message>Body tags deepper inside answer.
  • Loading branch information
alex-eri committed Dec 6, 2022
1 parent cded0c3 commit 3dac21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wsdl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class WSDL {
const obj = {};
const originalName = name;

if (!objectName && top.name === 'Body' && name !== 'Fault') {
if (!objectName && xmlns.soap && top.name === 'Body' && name !== 'Fault') {
let message = this.definitions.messages[name];
// Support RPC/literal messages where response body contains one element named
// after the operation + 'Response'. See http://www.w3.org/TR/wsdl#_names
Expand Down

0 comments on commit 3dac21c

Please sign in to comment.