Sunday, 21 November 2010

Catching SOAP Faults from WCF Service in BizTalk Orchestration

This Link has the Structure of Soap Version 1.1 & 1.2 Fault Message

This post will show how to Catch a Soap Fault returned by a WCF Service in a BizTalk Orchestration.

  1. Consume a WCF Service and Implement the Logic for Sending the Request and Receiving the Response from the WCF Service.

  2. Right Click on the PortType and Select New Fault Message as shown below.

  3. A new fault port will then be created as shown below

  4. Now set the Message Type to either Soap Fault 1.1 or 1.2 as shown below

  5. Add a scope block to the Orchestration, set the transaction type to None and an Exception handler

  6. Give any Valid Name to the Object Name and Set Object Type to Fault_1

  7. Keep a Message Assignment shape in the Exception Handler and assign the captured fault to another Message

  8. Handle the Message as required


Note: Message_3 should be of Soap_Fault type as selected in Step 4.
- Shiv


Web Counters

No comments:

Post a Comment