[Mono-bugs] [Bug 53384][Nor] New - WSDL generetad fails on validation for WebService using XmlAttributeAttribute

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 27 Jan 2004 03:27:42 -0500 (EST)

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 borisk@mainsoft.com.


--- shadow/53384	2004-01-27 03:27:42.000000000 -0500
+++ shadow/53384.tmp.19632	2004-01-27 03:27:42.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 53384
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: lluis@ideary.com                            
+ReportedBy: borisk@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: WSDL generetad fails on validation for WebService using XmlAttributeAttribute
+Description of Problem:
+If WebService includes class (for example as method return type) that have
+member with [System.Xml.Serialization.XmlAttributeAttribute()] attribute
+specified, the WSDL generated is not valid.
+In general, .NET in such a case just prints member as a part of complex
+type directrly specifying member's name and type.
+Mono generates additional schema including attribute specifying member's
+name and type, and complex type includes attribute referencing the
+attribute of additional schema created. Such a WDSL fails on validation by
+.NET wsdl tool.
+Steps to reproduce the problem:
+1. Create WebSrvice from the code attached.
+2. Generate WebService WSDL.
+3. Validate WSDL generated with MS wsdl utility
+Actual Results:
+WSDL validation fails.
+In the example attached the error is : 
+"Schema validation warning: Namespace 'http://schemas.xmlsoap.org/wsdl/' is
+not a vailable to be referenced in this schema.
+Schema validation warning: The 'http://schemas.xmlsoap.org/wsdl/:Company'
+attribute is not declared.
+Warning: Schema could not be validated. Class generation may fail or may
+produce incorrect results.
+Error: Unable to import binding 'MainSoap' from namespace
+  - Unable to import operation 'GetCustomerOrderHistory'.
+  - The attribute Company is missing."
+Expected Results:
+Validation passes with no error
+How often does this happen? 
+Additional Information: