Best Practice / Favorites for Calling Web Services (ASP.NET)

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 :)

+6
asynchronous web-services
source share
1 answer

Use asynchronous call in webservice with asynchronous pages. Something like this http://gofrom.us/6LC

+4
source share

All Articles