all groups > dotnet web services enhancements > january 2005 >
You're in the

dotnet web services enhancements

group:

getting a timeout when retreiving large data from web service


getting a timeout when retreiving large data from web service Jerome Cohen
1/10/2005 2:22:30 PM
dotnet web services enhancements:
I am calling a web service that requires WSE signing and encrypting. I am
using ASP.NET + the latest .NET framework + WSE 2.0 downloads.

Everything works fine when the response is modest in size. However, when I
call in a way that the response is supposed to be > 6 MB, then I get a
timeout exception after 600-700 seconds.

I have setup both machine.config and my project web.config to allow buffer
of 20MB and timeout of 1800 seconds. before I did that I would get an
exception on the buffer.
I even set the "Timeout" property of my instance of ServiceRootSoap to same
amount of seconds.

the web service support people see my request and an answer being sent
normally. an entry is generated in my output trace but none on the input
trace.

what is wrong ?


here is my web.config setup for buffer and timeout
---------------------------------------------------------
<messaging>
<maxRequestLength>20480</maxRequestLength>
<executionTimeout value="1800" />
</messaging>

here is my machine.config setup for buffer and timeout
(WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG)
---------------------------------------------------------
<httpRuntime
executionTimeout="1800"
maxRequestLength="20480"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
enableVersionHeader="true"
/>


here is my stack trace for the timerout exception:

-------------------------
The operation has timed-out. exception trace: at
System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at
System.Xml.XmlStreamReader.Read(Byte[] data, Int32 offset, Int32 length) at
System.Xml.XmlScanner.Read() at System.Xml.XmlScanner.ScanContent() at
System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities() at
System.Xml.XmlTextReader.Read() at
Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read() at
System.Xml.XmlLoader.LoadChildren(XmlNode parent) at
System.Xml.XmlLoader.LoadElementNode() at
System.Xml.XmlLoader.LoadCurrentNode() at
System.Xml.XmlLoader.LoadChildren(XmlNode parent) at
System.Xml.XmlLoader.LoadElementNode() at
System.Xml.XmlLoader.LoadCurrentNode() at
System.Xml.XmlLoader.LoadChildren(XmlNode parent) at
System.Xml.XmlLoader.LoadElementNode() at
System.Xml.XmlLoader.LoadCurrentNode() at
System.Xml.XmlLoader.LoadChildren(XmlNode parent) at
System.Xml.XmlLoader.LoadElementNode() at
System.Xml.XmlLoader.LoadCurrentNode() at
System.Xml.XmlLoader.LoadChildren(XmlNode parent) at
System.Xml.XmlLoader.LoadElementNode() at
System.Xml.XmlLoader.LoadCurrentNode() at
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at
Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream) at
Microsoft.Web.Services2.Messaging.SoapPlainFormatter.Microsoft.Web.Services2
..Messaging.ISoapFormatter.Deserialize(Stream stream) at
Microsoft.Web.Services2.InputStream.GetRawContent() at
Microsoft.Web.Services2.InputStream.get_Length() at
System.Xml.XmlScanner..ctor(TextReader reader, XmlNameTable ntable) at
System.Xml.XmlTextReader..ctor(String url, TextReader input, XmlNameTable
nt) at System.Xml.XmlTextReader..ctor(TextReader input) at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
HDwsclient.WebReference.ServiceRootSoap.CallService(CallService p0)

this is the error seen on the web service side Jerome Cohen
1/10/2005 2:45:39 PM
EXCEPTION: ClientAbortException: java.net.SocketException: Connection reset
by peer: socket write error
ClientAbortException: java.net.SocketException: Connection reset by peer:
socket write error


[quoted text, click to view]

Re: this is the error seen on the web service side SQLAgentman
1/12/2005 9:17:01 AM
Hello,

How about the Web Server/Web Service Server ( IIS for example )
Connection Timeout settings?

Sql

[quoted text, click to view]
AddThis Social Bookmark Button