From d9c13e94c1847721ce45e68d27327873ac376f99 Mon Sep 17 00:00:00 2001 From: Simon Hanna Date: Fri, 26 Apr 2024 11:23:48 +0200 Subject: [PATCH] Do not mutate $type during request processing --- src/wsdl/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wsdl/index.ts b/src/wsdl/index.ts index e4e15b7f..f3d56d6e 100644 --- a/src/wsdl/index.ts +++ b/src/wsdl/index.ts @@ -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) { @@ -1096,7 +1096,6 @@ export class WSDL { if (found) { found.$baseNameSpace = childNameSpace; - found.$type = childNameSpace + ':' + childName; break; } }