I am using WcfRestContrib which allows me to throw a WebException from the server (among other things). Very Similar to how the Rest Starter Kit allows with WebProtocolException. This sets the proper return code and a helper string. (this is visible in a
browser so I know it does work)
I am using the WebChannelFactory for the client side. What I would like to do is try to catch this message on the client side but am unable to do so. The client receives a ProtocolException with a brief explanation about the error code.
I added a custom Behavior to the client side to add a message inspector but the exception is thrown before the AfterReceiveReply call is made. How can I accomplish what I am looking for?
Please Help! Thanks!
View Complete Post