OK, I am getting myself a little confused here. I have a WCF service (service A) that calls another WCF service (service B). When I throw an exception on Service B e.g. throw new Exception("test")
then service A does not get an exception, instead the IsFault is set to true on the response message e.g.
responseMessage = forwardingChannel.Process(message)
if (responseMessage.IsFault) {
// Yes, there is a fault
}
I expected that I could put a try-catch around the Process method and receive the exception. Could someone explain to me what is going on here please?
Thanks