c# - Is it possible to implement Async Webservice call in .Net not only by one connection? -


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.

Enter image details here

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

entry (I think the voting system) </ strong>. Image description here

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.

  UniqClientId, ProcessId, StartTime, EndTime and any other state if necessary.   
  1. Clients send a request to the server by passing their unique ID
  2. The server logs process at the top table and initiates the process.
  3. If the client receives a response that the process has been completed, then customers should immediately contact the server (2-3 seconds or 15-20 seconds depending on your application)
  4. This requests the server to send feedback.

    In the meantime, the server does the following.

    1. When the process is complete, then stores the top-end of the table.
    2. Provides a method to check the status of the process by checking the above table.
    3. Provides a method for sending feedback.

      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.

Comments