ソースを参照

2004-05-06: Jean-Marc Andr�� <[email protected]>
* SoapTypeMapper.cs: small fix

svn path=/trunk/mcs/; revision=26866

Jean-Marc Andre 22 年 前
コミット
2db3c39529

+ 4 - 0
mcs/class/System.Runtime.Serialization.Formatters.Soap/ChangeLog

@@ -1,3 +1,7 @@
+2004-05-06  Jean-Marc Andre <[email protected]>
+	* SoapTypeMapper.cs:
+		Small fix about string type information not correctly formatted.
+
 2004-04-15  Jean-Marc Andre <[email protected]>
 	* SoapFormatter.cs, SoapReader.cs, SoapWriter.cs, SoapTypeMapper.cs:
 		Rewrote almost completly to make the code easier to understand

+ 3 - 2
mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs

@@ -117,11 +117,11 @@ namespace System.Runtime.Serialization.Formatters.Soap {
 			elementType = typeof(string);
 			if(typeFormat == FormatterTypeStyle.XsdString)
 			{
-				elementString = new Element("string", XmlSchema.Namespace);
+				elementString = new Element("xsd", "string", XmlSchema.Namespace);
 			}
 			else
 			{
-				elementString = new Element("string", SoapEncodingNamespace);
+				elementString = new Element(SoapEncodingPrefix, "string", SoapEncodingNamespace);
 			}
 //			typeToXmlNodeTable.Add(elementType.AssemblyQualifiedName, element);
 		}
@@ -245,6 +245,7 @@ namespace System.Runtime.Serialization.Formatters.Soap {
 		{
 			get 
 			{
+				if(type == typeof(string)) return elementString;
 				Element element = (Element) typeToXmlNodeTable[type.AssemblyQualifiedName];
 				if(element == null)
 				{