Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft BizTalk ESB Toolkit 2.1

You're reading from   Microsoft BizTalk ESB Toolkit 2.1 Discover innovative ways to solve your mission-critical integration problems with the ESB Toolkit

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849688642
Length 130 pages
Edition 1st Edition
Arrow right icon
Toc

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;
               
                Ex.FaultMessage faultMsg = new Ex.FaultMessage();
                faultMsg.Header = new Ex.FaultMessageHeader();
                faultMsg.Header.Application = "Exception Handling...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image