Publishing schema as web service... client side timeout problem
- From: "fj" <fj@xxxxxxxxxx>
- Date: Wed, 28 Feb 2007 16:36:05 -0800
I publish schema as web service. Client side gets timeout error. I counted
the time, it's exactly 110 seconds.
I've already changed the client code to use a very long timeout, 600000
milliseconds, but it still timeout at 110 seconds. So there has to be
something on server side to control the timeout.
Is there any settings in web.config or machine.config that I can play with?
I am using 2003 server and 2.0 framework.
Following is what I got from MSDN website and it proves that the timeout
happens on server side. But how can I change this
HttpServerUtility.ScriptTimeout property?
------------------------------------------------------------------------------------------------
Web services generated with the Web Services Publishing Wizard in BizTalk
Server 2006 are configured by default with a script timeout value of 110
seconds. This is the default value for the .NET Framework 2.0
HttpServerUtility.ScriptTimeout property. Web clients that use .NET
Framework 2.0 are configured by default with a request timeout value of 100
seconds. This is the default value for the .NET Framework 2.0
HttpWebRequest.Timeout property.
If Web clients that use .NET framework 2.0 are calling a Web Service
generated with the BizTalk Server 2006 Web Services Publishing Wizard, it is
possible that the client cannot receive server script timeout errors because
the client request timeout occurs first by default. To resolve this problem
you can do one of the following:
a.. Increase the client request timeout to a value greater than the server
script timeout by increasing the value for the HttpWebRequest.Timeout
property on the client.
b.. Reduce the server script timeout to a value less than the client
request timeout by reducing the value for the
HttpServerUtility.ScriptTimeout property on the server.
.
- Follow-Ups:
- Prev by Date: RE: csv file to xml
- Next by Date: Re: Publishing schema as web service... client side timeout problem
- Previous by thread: RE: csv file to xml
- Next by thread: Re: Publishing schema as web service... client side timeout problem
- Index(es):
Relevant Pages
|