Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2004

Tip: Looking for answers? Try searching our database.

consuming the noaa web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MattB - 30 Dec 2004 21:58 GMT
Hi. I'm trying to write a web form that will consumer the NOAA's web
service. I keep getting a timeout from my .net stuff, but their demo
seems to be getting live data, so I suspect I'm doing something wrong.

Have any of you ever done this?
I have a web reference to their wsdl
(http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl) and
the following code always times out:

        Dim oWeather As New gov.noaa.nws.www.ndfdXML
        Dim strReturn As String

        Try
            strReturn =
oWeather.NDFDgenByDay(38.32,-106.56,"2004-12-30", 1,
gov.noaa.nws.www.formatType.Item12hourly)

        Catch ex As Exception
            strReturn = ex.Message
        End Try

        lblweather.Text = strReturn

-------

Any hints would be appreciated!

Matt
John Saunders - 31 Dec 2004 00:08 GMT
> Hi. I'm trying to write a web form that will consumer the NOAA's web
> service. I keep getting a timeout from my .net stuff, but their demo seems
[quoted text clipped - 17 lines]
>
>         lblweather.Text = strReturn

I just tried it and got a timeout as well. I'm trying it again after raising
the timeout (I'm going to watch some TV and come back):

oWeather.Timeout = 1 * 60 * 60 * 1000    ' Before the Try

John Saunders
John Saunders - 31 Dec 2004 00:58 GMT
>> Hi. I'm trying to write a web form that will consumer the NOAA's web
>> service. I keep getting a timeout from my .net stuff, but their demo
[quoted text clipped - 22 lines]
>
> oWeather.Timeout = 1 * 60 * 60 * 1000    ' Before the Try

With the higher timeout, I get:

[WebException: The underlying connection was closed: An unexpected error
occurred on a receive.]
  System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
  System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
  System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
  WebApplication1.gov.noaa.nws.www.ndfdXML.NDFDgenByDay(Decimal latitude,
Decimal longitude, DateTime startDate, String numDays, formatType format) in
d:\inetpub\wwwroot\WebApplication1\Web
References\gov.noaa.nws.www\Reference.vb:60
  WebApplication1.WebForm1.Button2_Click(Object sender, EventArgs e) in
d:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.vb:74
  System.Web.UI.WebControls.Button.OnClick(EventArgs e)
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  System.Web.UI.Page.ProcessRequestMain() +1292

I think their service may be down.

John Saunders
MattB - 31 Dec 2004 03:59 GMT
>>>Hi. I'm trying to write a web form that will consumer the NOAA's web
>>>service. I keep getting a timeout from my .net stuff, but their demo
[quoted text clipped - 50 lines]
>
> John Saunders

Thanks for checking. Sort of a relief, yet annoying too. I guess I'm
getting what I paid for with this free service!

Matt

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.