Problem:
- We have a web application that asynchronously invokes some web services (from a page).
- This is usually normal, but some of them fail to boot (due to timeouts).
What are (if any) any suggested βbest practicesβ for asynchronously invoking web services in a web application?
- Are there any patterns that might be helpful?
- Should direct calling of services be avoided? (perhaps resorting to some other methods like AJAX)?
Illustrate - Direct call:
WSNameSpace.WSName svc = new WSNameSpace.WSName(); svc.EventName += new WSNameSpace.EventNameEventHandler(CallbackDelegate); svc.ServiceMethodAsync(param1, param2);
- Should I focus more on improving exception handling, rather than calling services?
Many thanks.
Rob
Update
I was Googleing and found this article about creating "service agents", while it is related to WinForms, I will definitely have a seat and read about it later to see how it affects my thoughts on this :)
Rob cooper
source share