My web service method returns a collection object, it will serialize nicely, thanks to how C # web services work!
But if my code throws an uncaught exception, I want to return my own error object instead.
Is this possible with C # ASP.NET v2?
For example,
Normal operation should return:
<Books> <book>Sample</book> <book>Sample</book> </Books>
But on error I want
<error> <errorMessage></errorMessage> </error>
c # web-services asmx soapfault
Jl.
source share