[Mono-bugs] [Bug 45692][Maj] New - Transfer dataset over WebService unusable.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 1 Jul 2003 13:27:10 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by pumpik@hotpop.com.

http://bugzilla.ximian.com/show_bug.cgi?id=45692

--- shadow/45692	Tue Jul  1 13:27:10 2003
+++ shadow/45692.tmp.24067	Tue Jul  1 13:27:10 2003
@@ -0,0 +1,75 @@
+Bug#: 45692
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pumpik@hotpop.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Transfer dataset over WebService unusable.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Simple Dataset over WebService unusable
+
+Steps to reproduce the problem:
+1. Create WebService like
+[WebMethod]
+public DataSet GetDataset()
+{
+DataSet ds = new DataSet();
+DataTable dt = ds.Tables.Add("PhoneNumbers");
+dt.Columns.Add("name");
+dt.Columns.Add("home");
+DataRow newRow;
+newRow = dt.NewRow();
+return ds;
+}
+2. WebService client with read returned Dataset
+3. Run Client;
+
+Actual Results:
+Got exception while creating serializer
+Method name: GetDataset parameters are:
+Output parameters are:
+    0: GetDatasetResult System.Data.DataSet
+
+Unhandled Exception: System.NullReferenceException: A null value was 
+found where an object instance was required
+in <0x000c4> 00 System.Xml.Serialization.TypeData:get_ListItemType ()
+in <0x000eb> 00 
+System.Xml.Serialization.XmlReflectionImporter:ImportListMapping 
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string,System.Xml.S
+erialization.XmlAttributes,int)
+in <0x009d2> 00 
+System.Xml.Serialization.XmlReflectionImporter:CreateMapMember 
+(System.Xml.Serialization.XmlReflectionMember,string)
+in <0x00227> 00 
+System.Xml.Serialization.XmlReflectionImporter:ImportClassMapping 
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
+in <0x00111> 00 
+System.Xml.Serialization.XmlReflectionImporter:ImportTypeMapping 
+(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
+in <0x00396> 00 
+System.Xml.Serialization.XmlReflectionImporter:ImportElementInfo 
+(string,string,System.Type,System.Xml.Serialization.XmlTypeMapMemberElemen
+t,System.Xml.Serialization.XmlAttributes)
+........
+
+Expected Results:
+View data of returned DataSet.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+With typed Dataset, this error is same...