[Mono-list] NOAA Soap Server and System.Web.Services problems
carl at carl-olsen.com
Sun Oct 9 17:32:12 EDT 2005
I went to the NOAA web site, and it mentions problems with .NET at the
bottom of the page, and says to use ASP.NET 2 Beta 3.
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Gonzalo Paniagua
Sent: Sunday, October 09, 2005 3:36 PM
To: mono-list at lists.ximian.com
Subject: Re: [Mono-list] NOAA Soap Server and System.Web.Services problems
On Fri, 2005-10-07 at 16:48 -0400, Jimmy wrote:
> I use the NOAA Soap Web Service (http://www.weather.gov/xml/) to
> weather data using the System.Web.Services class. This has worked for a
> while up until a couple of weeks ago. A couple of weeks ago they
> changed to using a proxy servers in front of the actual server. Well,
> this change causes the Soap client to timeout waiting for a response.
> You get this exception:
> Unhandled Exception: System.Net.WebException: Error getting response
> stream (ReadDone2): ReceiveFailure ---> System.Exception:
Right. The server is sending back a chunk header followed by a full
response. We should be throwing the same exception that MS.
Anyway, as a hack to make this work if they don't fix their server, you
can add these few lines to the wsdl generated file:
protected override WebRequest GetWebRequest (Uri uri)
HttpWebRequest request = (HttpWebRequest) base.GetWebRequest (uri);
request.ProtocolVersion = HttpVersion.Version10;
To force HTTP/1.0 protocol which prevents the server from using chunked
I tried that with the NOAA service and I'm getting a '502 Bad Gateway'
error right now.
Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list