2004-12-09 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Thu, 9 Dec 2004 10:40:03 +0000 (10:40 -0000)
committerLluis Sanchez <lluis@novell.com>
Thu, 9 Dec 2004 10:40:03 +0000 (10:40 -0000)
* TypeStubManager.cs: Removed redundat hastable access.
* SoapHttpClientProtocol.cs: Accept responses with ContentLength==0.
This fixes bug #70310.

svn path=/trunk/mcs/; revision=37476

mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs
mcs/class/System.Web.Services/System.Web.Services.Protocols/TypeStubManager.cs

index fe67755665a54752656ab8e32a4e7e7439a710f5..bda16a2d763a3a89c52e460963481d956b660fce 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-09  Lluis Sanchez Gual <lluis@novell.com>
+
+       * TypeStubManager.cs: Removed redundat hastable access.
+       * SoapHttpClientProtocol.cs: Accept responses with ContentLength==0.
+       This fixes bug #70310.
+
 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * SoapHttpClientProtocol.cs: dispose the StreamReader that wraps the
index c8ac655761fb18aeb4230560c698265091ab0f6b..143432a50207121a1ecfd279bc44f86b28837f2a 100644 (file)
@@ -244,6 +244,9 @@ namespace System.Web.Services.Protocols
                                        msg = String.Format (msg, (int) code, code);\r
                                        throw new WebException (msg, null, WebExceptionStatus.ProtocolError, http_response);\r
                                }\r
+                               if (response.ContentLength == 0 && (code == HttpStatusCode.Accepted || code == HttpStatusCode.OK)) {\r
+                                       return new object[0];\r
+                               }\r
                        }\r
                        \r
                        //\r
index 71cd921359d242e2f3608c02eda8767ce8760226..d050868bbdf4f0a77b3eebe18908a237c5fdd665 100644 (file)
@@ -394,11 +394,6 @@ namespace System.Web.Services.Protocols {
                                if (tm != null)
                                        return tm;
 
-                               tm = (LogicalTypeInfo) type_to_manager [t];
-
-                               if (tm != null)
-                                       return tm;
-                                       
                                tm = new LogicalTypeInfo (t);
                                type_to_manager [t] = tm;