Welcome to MSDN Blogs Sign in | Join | Help

Weather Report control redux

NOAA has been changing its weather forecast Web service and my Weather Report control has been broken for quite some time now. Web service location moved here:

http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl

Another (bigger) issue is that apparently NOAA Web service sometimes returns chunked HTTP response which is legal in HTTP 1.1, but .NET 2.0 has issues with parsing chinky HTTP responses. See excellent Rob Garrett's blog post on the subject. Chunked response caused control to fail sometimes depending on the size of the response. The fix is to override GetWebRequest in the proxy generated from WSDL and set HTTP version to 1.0. The tricky part is that you can't then use "Add Web Reference" in VS 2005 as it no loger generates visible proxy. I generated proxy by using WSDL.EXE from the 2.0 framework folder, tweaked it and added it to App_Code.

The attached ZIP includes control as well as sample Web site project for Visual Studio 2005 and Visual Web Developer Express 2005. Please also look at the README file.

 

Weather forecast control preview
Published Monday, June 12, 2006 12:34 PM by Mikhail Arkhipov (MSFT)

Attachment(s): Weather21.zip

Comments

# Mikhail Arkhipov (MSFT)'s WebLog : NOAA Weather Report Control is working again

# Weather Report control is broken

Several people complained that Weather Report control which fetches data off the NOAA Web service recently...
Monday, June 12, 2006 3:44 PM by Mikhail Arkhipov (MSFT)'s WebLog

# NOAA Weather Forecast Web Service

Some time ago I published a Web user control that employed NOAA Web Service and displayed weather forecast....
Monday, June 12, 2006 3:47 PM by Mikhail Arkhipov (MSFT)'s WebLog

# Weather Forecast ASP.NET user control

I am posting source code for the weather report control that I am using on my Web site. It looks like...
Monday, June 12, 2006 3:49 PM by Mikhail Arkhipov (MSFT)'s WebLog

# re: Weather Report control redux

I'm getting an exception on this line:

xmlWeather = weatherFetcher.NDFDgen(_latitude, _longtitude, "glance", dtStart, dtStart.AddYears(1), weatherParams);


[System.Net.WebException] {"The server committed a protocol violation. Section=ResponseStatusLine"} System.Net.WebException
Tuesday, June 13, 2006 2:32 PM by jtdavies

# re: Weather Report control redux

Tuesday, June 13, 2006 4:51 PM by Mikhail Arkhipov (MSFT)

# gov.weather.www.ndfdXML

I have this application that has been consuming NOAA’s web service for quite some time and all of a sudden

Monday, November 03, 2008 7:50 PM by ASP.NET AJAX Forum Posts
New Comments to this post are disabled
 
Page view tracker