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 authored and w666 committed Aug 20, 2024
1 parent 08cecb5 commit 26dc32b
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 @@ -232,7 +232,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 26dc32b

Please sign in to comment.