O'Reilly logo

ASP.NET Web API by Joydip Kanjilal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Best practices in using WCF services

Here are a few points you should keep in mind while using WCF services:

  • Don't put proxies in a using statement.
  • Use the FaultExceptions class for handling service exceptions. You should use the FaultContracts class to return error information to the service consumers.
  • Use message logging to log service operations.
  • It is always preferable to use a per call instance model.
  • Use WCF tools, such as SvcUtil.exe, SvcConfigEditor.exe, and SvcTraceViewer.exe.
  • You should protect logfiles from unauthorized access, and the logfiles should not contain sensitive information.
  • Use a proper authentication mechanism to authenticate service consumers.
  • Use string passwords, and protect access to the credential store.
  • Use IIS to host your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required