Take Control of Web Service Exceptions
Posted by: youve been HAACKED,
on 02 Nov 2005 |
View original | NEW Bookmarked: 0 time(s)
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...