[Mono-bugs] [Bug 48877][Nor] New - Not possible to add multilpe instances of SoapIncludeAttribute

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 25 Sep 2003 09:52:14 -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 olof.harwell@labs2.com.

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

--- shadow/48877	2003-09-25 09:52:14.000000000 -0400
+++ shadow/48877.tmp.15319	2003-09-25 09:52:14.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 48877
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: olof.harwell@labs2.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Not possible to add multilpe instances of SoapIncludeAttribute
+
+Description of Problem:
+
+It should be possible to add multiple instances of the 
+SoapIncludeAttribute attributes in a soap proxy class, such as:
+
+<code>
+[System.Xml.Serialization.SoapIncludeAttribute(typeof(CustomerField))]
+[System.Xml.Serialization.SoapIncludeAttribute(typeof(CustomerType))]
+	
+public class CustomerApi : 
+System.Web.Services.Protocols.SoapHttpClientProtocol {
+//...
+}
+</code>
+
+Results in:
+
+Compilation error:
+error CS0579: Duplicate 'System.Xml.Serialization.SoapIncludeAttribute' 
+attribute
+
+
+
+Reason:
+
+The attribute SoapIncludeAttribute uses the default value 
+for 'AllowMultiple' which is false. 
+
+Conclusion:
+
+Since the implmentation in SoapReflectionImporter.cs:176 seems to support 
+multiple attributes it should just be a matter setting 
+the 'AllowMultiple' in the SoapIncludeAttribute.cs to 'true'