[Mono-bugs] [Bug 488550] New: WSDL tool throws "Key duplication" exception when generating soap proxy for messages with duplicated element names
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 25 01:38:03 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=488550
Summary: WSDL tool throws "Key duplication" exception when
generating soap proxy for messages with duplicated
element names
Classification: Mono
Product: Mono: Tools
Version: 2.0.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: tools
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: brofieldmono at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=281751)
--> (https://bugzilla.novell.com/attachment.cgi?id=281751)
Sample WSDL that fails
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7
The wsdl tool in mono will throw an exception when parsing WSDL that has in/out
elements with the same name. See the attached test.wsdl file for a minimal test
sample. If the element "noerrorifnothere" is removed then the error doesn't
occur.
Reproducible: Always
Steps to Reproduce:
Download attached test.wsdl file
Execute "wsdl /l:CS /protocol:SOAP test.wsdl /out:test.cs"
Actual Results:
Web Services Description Language Utility
Mono Framework v2.0.50727.42
Error: Key duplication when adding: causeoferror
Stack:
at System.Collections.Hashtable.PutImpl (System.Object key, System.Object
value, Boolean overwrite) [0x00000]
at System.Collections.Hashtable.Add (System.Object key, System.Object value)
[0x00000]
at System.Xml.Serialization.CodeIdentifiers.Add (System.String identifier,
System.Object value) [0x00000]
at System.Web.Services.Description.ProtocolImporter.AddAsyncMembers
(System.String messageName, System.CodeDom.CodeMemberMethod method) [0x00000]
..
Expected Results:
Just like the Microsoft wsdl utility, correctly parse the WSDL file and
generate a soap proxy.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list