[Mono-bugs] [Bug 52742][Wis] New - wsdl generates wrong class name in proxy

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 10 Jan 2004 15:31:59 -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 bart@macacos.org.

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

--- shadow/52742	2004-01-10 15:31:59.000000000 -0500
+++ shadow/52742.tmp.1896	2004-01-10 15:31:59.000000000 -0500
@@ -0,0 +1,91 @@
+Bug#: 52742
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bart@macacos.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: wsdl generates wrong class name in proxy
+
+Description of Problem:
+
+wsdl packed in version 0.29 (and also from current cvs) generates wrong
+class names in the proxy file. The problem is that the protocol name is
+appended to the name of the class.
+
+Steps to reproduce the problem:
+
+Use the TestService.asmx file that comes with xsp-0.8 to generate a .cs
+file. That can be done using xsp.
+
+1. run the xsp server from the xsp/tests/ directory 
+  
+   cd xspdir/tests
+   mono /usr/local/bin/xsp.exe
+
+2. in another terminal, generate a simple proxy using wsdl
+
+   wsdl http://localhost:8080/TestService.asmx?WSDL
+
+Actual Results:
+
+The generated file begins with (first comments skiped) :
+
+/// <remarks/>
+[System.Web.Services.WebServiceBinding(Name="TestServiceSoap",Namespace="http://tempuri.org/"),
+System.Diagnostics.DebuggerStepThroughAttribute(),
+System.ComponentModel.DesignerCategoryAttribute("code")]
+public class TestServiceSoap :
+System.Web.Services.Protocols.SoapHttpClientProtocol {
+ 
+    public TestServiceSoap () {
+        this.Url = "http://localhost:8080/TestService.asmx";
+    }
+
+
+Expected Results:
+
+The class name should be TestService and no TestServiceSoap. 
+
+/// <remarks/>
+[System.Diagnostics.DebuggerStepThroughAttribute()]
+[System.ComponentModel.DesignerCategoryAttribute("code")]
+[System.Web.Services.WebServiceBindingAttribute(Name="TestServiceSoap",
+Namespace="http://tempuri.org/")]
+public class TestService :
+System.Web.Services.Protocols.SoapHttpClientProtocol {
+     
+    /// <remarks/>
+    public TestService() {
+        this.Url = "http://caffeine:8080/TestService.asmx";
+    }
+     
+
+
+
+How often does this happen? 
+Always in Linux (using wsdl from version 0.28 and 0.29).
+
+Additional Information:
+
+The code here in the Expected Results was generated using Mono 0.28 on
+windows. I put the server in the linux and used the command:
+
+http://caffeine:8080/TestService.asmx?WSDL
+
+from the windows host. It generated the right class name!
+
+Another thing is that I used the linux version on the GoogleSearch.wsdl
+which is mentioned on the Mono Handbook and it generated the right class name. 
+
+Hope that I'm not saying something you already know or that is too damn
+wrong :)