I have a .net webservice, it's a method that takes 60 seconds and after that, Returns the result.
In some networks, especially in the lower band width, I get a timeout error in 40 seconds before the web server method in 60 seconds.
Now I want to implement webservice Async calls to support low band width networks.
An approach in the Async webservice call is using a thread that runs the webservice method and is returned to the main thread as shown in the following picture.
But my problem is this approach Will not be solved because this thread uses a connection.
I need another approach to call my client the thread in the webservice method and the method starts its operation and when the task is completed, 1) the webservice sends a message that prepares your response or, 2) Client check, if the web service How can I apply the second approach in the net What? Is this possible? Thank you. To create a table on your database, the status of the process. In the meantime, the server does the following. I 'I'm not sure what your service is actually doing, but if your operation is only to modify some table on the database, then implementing it is not difficult.
UniqClientId, ProcessId, StartTime, EndTime and any other state if necessary.
Comments
Post a Comment