[Mono-bugs] [Bug 82519][Wis] Changed - [PATCH] Support array arguments for WS over HTTP POST

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 21 09:44:30 EDT 2007


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 robertj at gmx.net.

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

--- shadow/82519	2007-08-21 09:28:38.000000000 -0400
+++ shadow/82519.tmp.29082	2007-08-21 09:44:29.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.2
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.Web.Services
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: robertj at gmx.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -21,6 +21,48 @@
 System.Web.Services.Protocols/ValueCollectionParameterReader.cs
 
 ------- Additional Comments From robertj at gmx.net  2007-08-21 09:28 -------
 Created an attachment (id=19850)
 ValueCollectionParameterReader.diff
 
+
+------- Additional Comments From robertj at gmx.net  2007-08-21 09:44 -------
+I don't have a true test case for this, but maybe this is
+enough to demonstrate to problem:
+
+
+[WebMethod]
+public void Method (string[] strings)
+{
+}
+
+
+Request:
+
+----
+POST /Test.asmx/Method HTTP/1.1
+Host: localhost
+Content-Type: application/x-www-form-urlencoded
+Content-Length: <some length>
+
+strings=str1&strings=str2&strings=str3
+----
+
+
+Response:
+
+System.InvalidOperationException: Cannot convert 'str1,str2,str3' to
+System.String[]
+Parameter name: strings --> Type not supported
+  at System.Web.Services.Protocols.ValueCollectionParameterReader.Read
+(System.Collections.Specialized.NameValueCollection collection)
+[0x000d1] in
+/usr/local/src/mono/1-2-5/mcs/class/System.Web.Services/System.Web.Services.Protocols/ValueCollectionParameterReader.cs:103
+  at System.Web.Services.Protocols.HtmlFormParameterReader.Read
+(System.Web.HttpRequest request) [0x00000] in
+/usr/local/src/mono/1-2-5/mcs/class/System.Web.Services/System.Web.Services.Protocols/HtmlFormParameterReader.cs:50
+  at
+System.Web.Services.Protocols.HttpSimpleWebServiceHandler.ProcessRequest
+(System.Web.HttpContext context) [0x00060] in
+/usr/local/src/mono/1-2-5/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs
+
+


More information about the mono-bugs mailing list