The Exception Handling web service

This service was already introduced in the Chapter 3, ESB Exception Handling, dedicated to the exception management in the ESB Toolkit.

In order to submit a fault into the ESB so it's handled by the standard ESB faults processing logic we might have in place in our ESB, we just need to instantiate the FaultMessage class defined in the service contract, fill its properties, and use it as an input for the SubmitFault operation of the service.

The properties on that fault message are the same as the ones we already described in the Chapter 3, ESB Exception Handling:

Ex.ExceptionHandling handleException = new ExceptionHandlingService.SubmitFault.ExceptionHandling(); handleException.Credentials = System.Net.CredentialCache.DefaultCredentials; ...

Get Microsoft BizTalk ESB Toolkit 2.1 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.