Author: lluis
Date: 2005-06-27 07:50:28 -0400 (Mon, 27 Jun 2005)
New Revision: 46549

Modified:
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
   
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
Log:
2005-06-27  Lluis Sanchez Gual <[EMAIL PROTECTED]>

        * SoapWriter.cs: Serialize TimeSpan values like MS.NET. Fix by Roei Erez
        for bug #75364.



Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
 2005-06-27 11:35:52 UTC (rev 46548)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/ChangeLog
 2005-06-27 11:50:28 UTC (rev 46549)
@@ -1,3 +1,8 @@
+2005-06-27  Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+       * SoapWriter.cs: Serialize TimeSpan values like MS.NET. Fix by Roei Erez
+       for bug #75364.
+
 2005-05-10  Lluis Sanchez Gual <[EMAIL PROTECTED]>
 
        * SoapTypeMapper.cs: Serialize floats and doubles using the correct

Modified: 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
     2005-06-27 11:35:52 UTC (rev 46548)
+++ 
trunk/mcs/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapWriter.cs
     2005-06-27 11:50:28 UTC (rev 46549)
@@ -370,8 +370,13 @@
                                Element element = _mapper[currentType];
                                _xmlWriter.WriteStartElement(element.Prefix, 
element.LocalName, element.NamespaceURI);
                                Id(currentObjectId);
-                       }
-                       if(currentType == typeof(string))
+                       }
+
+                       if (currentType == typeof(TimeSpan))
+                       {
+                               
_xmlWriter.WriteString(SoapTypeMapper.GetXsdValue(currentObject));
+                       }
+                       else if(currentType == typeof(string))
                        {
                                
_xmlWriter.WriteString(currentObject.ToString());
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to