* SoapHttpClientProtocol.cs:
* WebServiceHelper.cs: throw a WebException instead of an Exception.
Fixes bug #51193.
svn path=/trunk/mcs/; revision=20258
+2003-11-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * SoapHttpClientProtocol.cs:
+ * WebServiceHelper.cs: throw a WebException instead of an Exception.
+ Fixes bug #51193.
+
2003-10-26 Miguel de Icaza <miguel@ximian.com>
* WebServiceHelper.cs: Compute content type and encoding
SoapMethodStubInfo msi = message.MethodStubInfo;\r
\r
if (!(code == HttpStatusCode.Accepted || code == HttpStatusCode.OK || code == HttpStatusCode.InternalServerError))\r
- throw new Exception ("Return code was: " + http_response.StatusCode);\r
+ throw new WebException ("Request error. Return code was: " + http_response.StatusCode);\r
\r
//\r
// Remove optional encoding\r
//
using System;
+using System.Net;
using System.Text;
using System.Xml;
using System.Xml.Schema;
}
if (content_type != "text/xml")
- throw new Exception ("Content is not XML: " + content_type);
+ throw new WebException ("Content is not XML: " + content_type);
return Encoding.GetEncoding (encoding);
}