[Mono-bugs] [Bug 421300] New: WebService hangs on large responses.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 29 02:36:58 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=421300


           Summary: WebService hangs on large responses.
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: stuart at cbtnuggets.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Description of Problem:

I have created a WebService which returns a string and am running it with XSP2.
 If the string is longer then 67050 characters the response never returns. 
Below is a simple WebService to test with:

<%@ WebService Language="C#" Class="Web.Service.TestSize" %>

using System;
using System.Web;
using System.Text;
using System.Web.Services;
using System.Xml;
using System.Web.Services.Protocols;
using System.Web.Script.Services;

using System.Configuration;
using System.Web.Configuration;

namespace Web.Service
{
  [WebService(Namespace = "http://localhost:8080/")]
  [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  [ScriptService]
  public class TestSize : System.Web.Services.WebService
  {
    [WebMethod]
    public String GetResponse(int size) {
      StringBuilder builder = new StringBuilder();
      for (int i = 0; i < size; i++) {
        builder.Append("A");
      }
      return builder.ToString();
    }
  }
}

Steps to reproduce the problem:
1. Run xsp2 and goto http://localhost:8080/TestSize.asmx
2. Select the method "GetResponse" in the left menu.
3. Select the "Test Form".
4. Enter the size 67051.


Actual Results: The response hangs.


Expected Results: The response should return a string of length 67051.


How often does this happen? Every time.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list