[Mono-bugs] [Bug 73918][Nor] New - Importing Service Descriptions fails generating code

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Mar 2005 06:10:28 -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 extremo@tiscali.nl.


--- shadow/73918	2005-03-21 06:10:28.000000000 -0500
+++ shadow/73918.tmp.15905	2005-03-21 06:10:28.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 73918
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: extremo@tiscali.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Importing Service Descriptions fails generating code
+When importing a ServiceDescription by using the code below (step 1 of
+steps to reproduce), then no code will actually be generated on mono 1.1.4
+(result warnings == NoCodeGenerated).
+By changing the "imp.ServiceDescriptions.Add(sd);" into
+"imp.AddServiceDescription(sd, null, null);", everything works fine!
+On itself this is no big issue, though on MS .NET 1.1 framework the code
+below works also (even though MS also uses the "AddServiceDescription" in
+their WSDL tool). Therefor I would consider this to be inconsistent behaviour.
+Steps to reproduce the problem:
+1. Use the following code to import an initialized ServiceDescription.
+CodeNamespace ns = new CodeNamespace("WhateverNamespace");
+CodeCompileUnit ccu = new CodeCompileUnit();
+ServiceDescriptionImporter imp = new ServiceDescriptionImporter();
+imp.ProtocolName = protocol;
+imp.Style = ServiceDescriptionImportStyle.Client;
+ServiceDescriptionImportWarnings warnings = imp.Import(ns, ccu);
+2. Execute the code and test on "warnings"
+Actual Results:
+warnings == NoCodeGenerated
+Expected Results:
+warnings == 0
+How often does this happen? 
+Additional Information:
+Incompatible with MS .NET 1.1 framework, though easy to work around (once
+you know!). I've figured out the workaround by looking at mono's wsdl.exe
+sourcecode... duh :)