I was recently asked by a security team if it was possible to change the message returned from deserialization issues within a WCF service. The error in question was when they intercepted the message and passed an integer that was outside the bounds of Int32.
The value '2147483649' cannot be parsed as the type 'Int32'.
My answer was that the deserialization process occurs before a single line of my service is executed and that it is not possible. However, is it possible to achieve this goal?