469,917 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

System.IO.IOException: "Unable to read data from the transport connection."

Hi, I've been trying to use the weather webservice
available from the National Weather Service (NWS), at
wsdl without success. Here's what I've found so far.

When I use .NET 1.0/1.1, and try to call the primary
webservice method NDFDgen, the call will succeed if the
productType is set to "glance", but fail if set to "time-

I know this is starting to sound like I should post this
to the NWS, and tell them their webservice is screwed up
(like that would do any good - trying to get service out
of the federal government), but here's where it turns
really weird. When I use .NET version 2.0 (the beta),
everything works fine. Perfectly fine. No problems with
productType set either way. And the format of the two
responses (xml string, BTW) doesn't seem strange, either.

The client I've been using is as simple as can be, just a
button on a form, with no fancy threading or anything. It
uses the autogenerated classes from the VS.NET IDE (2002)
or wsdl.exe (tried it both ways). Here's the stack trace
(starting at the button click), if anyone is still
reading. Thanks in advance.

An unhandled exception of type 'System.IO.IOException'
occurred in system.dll

Additional information: Unable to read data from the
transport connection.
Unhandled Exception: System.IO.IOException: Unable to read
data from the transport connection.
at System.Net.ConnectStream.BeginRead(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
at System.Net.ConnectStream.Read(Byte[] buffer, Int32
offset, Int32 size)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer,
Int32 userOffset, Int32 desiredChars, Boolean&
at System.IO.StreamReader.Read(Char[] buffer, Int32
index, Int32 count)
at System.Xml.XmlScanner.Read()
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadEndElement()
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadRe
sponse(SoapClientMessage message, WebResponse response,
Stream responseStream)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke
(String methodName, Object[] parameters)
at TestNWS.gov.noaa.nws.www.ndfdXML.NDFDgen(Decimal
latitude, Decimal longitude, productType product, DateTime
startTime, DateTime endTime, weatherParametersType
weatherParameters) in
References\gov.noaa.nws.www\Reference.cs:line 38
at TestNWS.Form1.button1_Click(Object sender, EventArgs
e) in l:\data\programming\weather\testnws\form1.cs:line 96
Nov 21 '05 #1
0 10756

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by NicK chlam via DotNetMonster.com | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.