I have created a windows based client application which calls a web service. I have added a service reference with wsdl obtained for the webservice.
When I am trying to execute the method in the web service, I am getting a timeout error as the execution takes more than 6 min. The proxy class which is obtained from References.cs doesn't have "TimeOut" property.
Please try increase the timeout property of the web service proxy, increase the executionTimeout to a larger value( it based on milliseconds) of both client and service. Refer
this thread.
If it still does not work, please use fiddler to get detail error message.
Best Regards.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
sivabalaguru
0 Points
2 Posts
Extend timeout for web service call
Nov 28, 2012 06:45 PM|LINK
Hi,
I have created a windows based client application which calls a web service. I have added a service reference with wsdl obtained for the webservice.
When I am trying to execute the method in the web service, I am getting a timeout error as the execution takes more than 6 min. The proxy class which is obtained from References.cs doesn't have "TimeOut" property.
I tried adding below to app.config file.
<system.web>
<httpRuntime executionTimeout="356657" />
<compilation debug="false"/>
</system.web>
<binding name="XXXX_Binding" receiveTimeout="00:10:00"
sendTimeout="00:10:00" closeTimeout="00:10:00" >
None of them worked.
Could anyone please help me in extending the timeout for my we service call?
Thanks.....
Haixia Xie -...
Contributor
3087 Points
298 Posts
Microsoft
Re: Extend timeout for web service call
Nov 30, 2012 04:38 AM|LINK
Hi sivabalaguru,
Please try increase the timeout property of the web service proxy, increase the executionTimeout to a larger value( it based on milliseconds) of both client and service. Refer this thread.
If it still does not work, please use fiddler to get detail error message.
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store
sivabalaguru
0 Points
2 Posts
Re: Extend timeout for web service call
Dec 03, 2012 10:54 AM|LINK
Hi Xie,
The problem is the proxy class which I have obtained from wsdl doesn't have the execution timeout property.
I have added the wsdl as service reference. Web service is working fine with SOAP UI as I can set the timeout in request properties.
Could you let me know the alternate approaches for extending timeout?
Thanks....
oak_silver
Member
418 Points
64 Posts
Re: Extend timeout for web service call
Dec 04, 2012 08:01 AM|LINK
Refer this thread:
http://stackoverflow.com/questions/1520283/wcf-service-how-to-increase-the-timeout