System\Xml\Serialization\SoapReflectionImporter.cs (25)
167if (!model.TypeDesc.IsPrimitive)
176if (model.TypeDesc.FullName != td.FullName)
178throw new InvalidOperationException(SR.Format(SR.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
187switch (model.TypeDesc.Kind)
200if (model.TypeDesc.IsOptionalValue)
202TypeDesc? baseTypeDesc = model.TypeDesc.BaseTypeDesc;
207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!;
208string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc!.Name : dataType;
212return CreateNullableMapping(baseMapping, model.TypeDesc.Type!);
219throw new NotSupportedException(SR.Format(SR.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName));
298if (model.TypeDesc.Kind == TypeKind.Root) return GetRootMapping();
305string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
308StructMapping? mapping = (StructMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc);
313mapping.TypeDesc = model.TypeDesc;
358if (model.TypeDesc.BaseTypeDesc != null)
400if (model.TypeDesc.IsValueType)
401throw new NotSupportedException(SR.Format(SR.XmlRpcRefsInValueType, model.TypeDesc.FullName));
426throw new NotSupportedException(SR.Format(SR.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName));
428mapping.TypeDesc = model.TypeDesc;
442if (existingMapping.TypeDesc == model.TypeDesc)
547mapping.TypeDesc = model.TypeDesc;
561string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
564EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc);
569mapping.TypeDesc = model.TypeDesc;
583throw new InvalidOperationException(SR.Format(SR.XmlNoSerializableMembers, model.TypeDesc.FullName));