From 93a436cd666ef05cda969e86ca23f7aa4563103b Mon Sep 17 00:00:00 2001 From: Mark Hewitt Date: Mon, 4 May 2026 16:49:06 +0100 Subject: [PATCH] Fix: WSDL validation fails - XmlDocument complex type has blank name #1185 --- src/SoapCore/Meta/MetaBodyWriter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SoapCore/Meta/MetaBodyWriter.cs b/src/SoapCore/Meta/MetaBodyWriter.cs index caa980b1..845ba20c 100644 --- a/src/SoapCore/Meta/MetaBodyWriter.cs +++ b/src/SoapCore/Meta/MetaBodyWriter.cs @@ -1275,6 +1275,11 @@ private void AddSchemaType(XmlDictionaryWriter writer, TypeToBuild toBuild, stri } else if (type == typeof(object)) { + if (string.IsNullOrEmpty(name)) + { + name = typeName; + } + writer.WriteAttributeString("name", name); WriteQualification(writer, isUnqualified); }