Difference between a web procedure and an asynchronous web procedure

Principle of web procedures

WorkflowGen calls the web procedure and waits for the response. Since WorkflowGen is still connected, if the response takes too much time to reply a time out will occur.

  1. WorkflowGen calls the web procedure.

  2. The web procedure replies to WorkflowGen.

  3. WorkflowGen disconnects.

Principle of asynchronous web procedures

WorkflowGen calls the asynchronous web procedure but doesn’t wait for the response. WorkflowGen is disconnected. Then the asynchronous web procedure will have to re-call WorkflowGen after its processing has completed.

  1. WorkflowGen calls the asynchronous web procedure.

  2. WorkflowGen disconnects.

  3. The asynchronous web procedure calls WorkflowGen to complete the action.

  4. WorkflowGen replies to the asynchronous web procedure to confirm the completion.

  5. The asynchronous web procedure disconnects.