Skip to content

Commit

Permalink
Do not mutate $type during request processing
Browse files Browse the repository at this point in the history
  • Loading branch information
simhnna committed Apr 26, 2024
1 parent 96366f0 commit d9c13e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wsdl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ export class WSDL {
let resolvedChildSchemaObject;
if (childSchemaObject.$type) {
const typeQName = splitQName(childSchemaObject.$type);
const typePrefix = typeQName.prefix;
const typePrefix = childSchemaObject.$baseNameSpace || typeQName.prefix;
const typeURI = schema.xmlns[typePrefix] || this.definitions.xmlns[typePrefix];
childNsURI = typeURI;
if (typeURI !== 'http://www.w3.org/2001/XMLSchema' && typePrefix !== TNS_PREFIX) {
Expand Down Expand Up @@ -1096,7 +1096,6 @@ export class WSDL {

if (found) {
found.$baseNameSpace = childNameSpace;
found.$type = childNameSpace + ':' + childName;
break;
}
}
Expand Down

0 comments on commit d9c13e9

Please sign in to comment.