sriram
sriram

Reputation: 91

What are the time out changes should make to client application that use WCF service?

My wcf service excutes many SQL queries.After I will send an XML file to client application.

It takes more tha 30 mins to execute all the queries.

WCF Service is executing successfully on DataBase.

But client application is crashing before getting response from my service. It is crashing for around 20 mins.

I made the following time out changes in client config file. But still client application is crashing.

closeTimeout="04:20:00" openTimeout="04:20:00" receiveTimeout="04:00:00" sendTimeout="04:00:00"

Any idea?

Thanks, JN

Upvotes: 1

Views: 57

Answers (1)

kroonwijk
kroonwijk

Reputation: 8400

Do not wait that long for a service to return. I would go the async way and fire a message to start the XML generation process. Then either go back to the service once in a while to check the status of the assignment, or have a duplex binding and let the service call back to the client to indicate progress or that the job has completed.

Workflow Foundation might offer you some good opportunities to make this complex asynchronous behavior more simple. Take one of the samples in http://msdn.microsoft.com/en-us/library/ms741723(v=vs.90).aspx to get yourself up to speed.

Upvotes: 2

Related Questions