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