(node: XmlNode, localName: string)
| 535 | } |
| 536 | |
| 537 | function findFirst(node: XmlNode, localName: string): XmlNode | null { |
| 538 | if (node.localName === localName) return node |
| 539 | for (const child of node.children) { |
| 540 | const found = findFirst(child, localName) |
| 541 | if (found) return found |
| 542 | } |
| 543 | return null |
| 544 | } |
| 545 | |
| 546 | function extractFaultMessage(envelope: XmlNode): string | null { |
| 547 | const fault = findFirst(envelope, 'Fault') |
no outgoing calls
no test coverage detected