System\Xml\Serialization\SoapReflectionImporter.cs (25)
185if (!model.TypeDesc.IsPrimitive) {
192if (model.TypeDesc.FullName != td.FullName) {
193throw new InvalidOperationException(Res.GetString(Res.XmlDataTypeMismatch, dataType, "SoapElementAttribute.DataType", model.TypeDesc.FullName));
202switch (model.TypeDesc.Kind) {
214if (model.TypeDesc.IsOptionalValue) {
215TypeDesc baseTypeDesc = model.TypeDesc.BaseTypeDesc;
220TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
221string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc.Name : dataType;
225return CreateNullableMapping(baseMapping, model.TypeDesc.Type);
231throw new NotSupportedException(Res.GetString(Res.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName));
295if (model.TypeDesc.Kind == TypeKind.Root) return GetRootMapping();
302string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
305StructMapping mapping = (StructMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc);
309mapping.TypeDesc = model.TypeDesc;
350if (model.TypeDesc.BaseTypeDesc != null) {
385if (model.TypeDesc.IsValueType)
386throw new NotSupportedException(Res.GetString(Res.XmlRpcRefsInValueType, model.TypeDesc.FullName));
410throw new NotSupportedException(Res.GetString(Res.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName));
412mapping.TypeDesc = model.TypeDesc;
424if (existingMapping.TypeDesc == model.TypeDesc)
514mapping.TypeDesc = model.TypeDesc;
526string typeName = XsdTypeName(model.Type, a, model.TypeDesc.Name);
529EnumMapping mapping = (EnumMapping)GetTypeMapping(typeName, typeNs, model.TypeDesc);
533mapping.TypeDesc = model.TypeDesc;
545throw new InvalidOperationException(Res.GetString(Res.XmlNoSerializableMembers, model.TypeDesc.FullName));