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; } }