[Mono-bugs] [Bug 55547][Wis] New - wsdl utility don't work fime
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 13 Mar 2004 09:30:57 -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 ale.galassi@libero.it.
http://bugzilla.ximian.com/show_bug.cgi?id=55547
--- shadow/55547 2004-03-13 09:30:57.000000000 -0500
+++ shadow/55547.tmp.27977 2004-03-13 09:30:57.000000000 -0500
@@ -0,0 +1,121 @@
+Bug#: 55547
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ale.galassi@libero.it
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: wsdl utility don't work fime
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+wsdl utility don't work fine with type when generate a proxy class
+
+Steps to reproduce the problem:
+1. create a web service that return a DataSet
+
+ [WebMethod(Description="Restituisce il DataSet di Ausl")]
+ public DataSet AuslDataSet(string query)
+ {
+ string srtcon = "DSN=ausl;UID=agalassi;PWD=cactus";
+ DataSet dataset = new DataSet("OdbcDataSet");
+ OdbcConnection conn = new OdbcConnection(srtcon);
+ OdbcDataAdapter adapter = new OdbcDataAdapter();
+ if (query.StartsWith("S") || query.StartsWith("s"))
+ adapter.SelectCommand = new OdbcCommand(query, conn);
+ else if (query.StartsWith("I") || query.StartsWith("i"))
+ adapter.InsertCommand = new OdbcCommand(query, conn);
+ else if (query.StartsWith("U") || query.StartsWith("u"))
+ adapter.UpdateCommand = new OdbcCommand(query, conn);
+ adapter.Fill(dataset);
+ return dataset;
+ }
+
+
+2. Take wsdl description and do: wsdl AuslDataSet.wsdl
+
+Actual Results:
+
+/// <remarks/>
+[System.Web.Services.WebServiceBinding(Name="AuslSoap",Namespace="http://tempuri.org/"),
+System.Diagnostics.DebuggerStepThroughAttribute(),
+System.ComponentModel.DesignerCategoryAttribute("code")]
+public class AuslSoap : System.Web.Services.Protocols.SoapHttpClientProtocol {
+
+ public AuslSoap () {
+ this.Url = "http://localhost/mono/AuslWebServices.asmx";
+ }
+
+ /// <remarks>
+ /// Restituisce il DataSet di Ausl
+ /// </remarks>
+
+[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AuslDataSet",RequestNamespace="http://tempuri.org/",ResponseNamespace="http://tempuri.org/",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
+ public virtual object AuslDataSet(string query) {
+ System.Object[] results = this.Invoke("AuslDataSet", new object[] {
+ query});
+ return ((object)(results[0]));
+ }
+
+ public virtual System.IAsyncResult BeginAuslDataSet(string query,
+System.AsyncCallback callback, object asyncState) {
+ return this.BeginInvoke("AuslDataSet", new object[] {
+ query}, callback, asyncState);
+ }
+
+ public virtual object EndAuslDataSet(System.IAsyncResult asyncResult) {
+ System.Object[] results = this.EndInvoke(asyncResult);
+ return ((object)(results[0]));
+ }
+
+Expected Results:
+
+/// <remarks/>
+[System.Web.Services.WebServiceBinding(Name="Ausl",Namespace="http://tempuri.org/"),
+System.Diagnostics.DebuggerStepThroughAttribute(),
+System.ComponentModel.DesignerCategoryAttribute("code")]
+public class Ausl : System.Web.Services.Protocols.SoapHttpClientProtocol {
+
+ public Ausl () {
+ this.Url = "http://localhost/mono/AuslWebServices.asmx";
+ }
+
+ /// <remarks>
+ /// Restituisce il DataSet di Ausl
+ /// </remarks>
+
+[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AuslDataSet",RequestNamespace="http://tempuri.org/",ResponseNamespace="http://tempuri.org/",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
+ public System.Data.DataSet AuslDataSet(string query) {
+ System.Object[] results = this.Invoke("AuslDataSet", new object[] {
+ query});
+ return ((System.Data.DataSet)(results[0]));
+ }
+
+ public System.IAsyncResult BeginAuslDataSet(string query,
+System.AsyncCallback callback, object asyncState) {
+ return this.BeginInvoke("AuslDataSet", new object[] {
+ query}, callback, asyncState);
+ }
+
+ public System.Data.DataSet EndAuslDataSet(System.IAsyncResult
+asyncResult) {
+ System.Object[] results = this.EndInvoke(asyncResult);
+ return ((System.Data.DataSet)(results[0]));
+ }
+
+
+How often does this happen?
+evriytime
+
+Additional Information: