Take Control of Web Service Exceptions

Posted by: youve been HAACKED, on 02 Nov 2005 | View original

Craig Andera posts a technique for handling exceptions thrown by a webservice. He takes the approach of adding a try catch block to each method. A while ago I tackled the same problem, but I was unhappy with the idea of wrapping every inner method call with a try catch block. I figured there had to be a better way. Since SOAP is simply XML being sent over a wire, I figured there had to be a way for me to hook into the pipeline rather than modify my code. What I came up with is my Exception Injection...

Advertisement
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

Similar Posts

  • ASP.NET 2.0 Data Controls Tips & Tricks Talk at VT .NET UG more
  • The lists to blogs transition more
  • August 9th ASP.NET Link-Listing more
  • Accessing Embedded Resources through a URL using WebResource.axd more
  • Deployments made easy more
  • Sharepoint 2007 & ASP.NET 2.0 WebParts more
  • This blog is now closed. Please update your links. more
  • Tweaking Community Server Out of the Box more
  • Calling web services hosted outside of your application with Atlas more
  • Atlas How Do I? Video Series Begins more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD