Handling faults within the Service Bus
Before we look at how to handle faults inside a proxy service, it's worth taking a step back to revisit our SOA Architecture and the purpose of the virtual service layer.
Essentially, this layer provides a proxy service based on our canonical model, which is responsible for routing requests to the appropriate application service. In this process, it will validate and transform the input message into the one expected by the application service and vice versa for the response.
Within our proxy service, an error can occur at the validate stage (as discussed in the previous chapter, Chapter 13, Building Validation into Services), in which case the proxy service needs to generate and return an appropriate fault ...