How to Emulate Fault Messages

To emulate fault messages:

You can simulate a fault message returned from a web service partner. This simulation enables you to test fault handling capabilities in your process.

  1. Access the Wire Actions dialog by following Step 1 through Step 3 of How to Emulate Outbound Messages.
  2. Click the Emulates tab.
  3. Click the Add icon.
  4. Click Emulate Fault.
  5. Enter the details described in Table 51-9:

    Table 51-9 Emulate Fault Message Fields

    Field Value

    Fault

    Select the fault type to return from a partner (for example, NegativeCredit).

    Fault Message

    Displays the message name.

    Part

    Select the message part containing the fault (for example, payload).

    Value

    Create a simulated fault message to return from a web service partner:

    • Enter Manually

    Click to manually enter message data in the Enter Value field. A Generate Sample button enables you to automatically generate a sample file for testing. Click Save As to save the sample file.

    • Load From File

    Click the Browse icon to load message data from a file. The file is added to the messages folder in the Applications window.

    Duration

    Enter the maximum amount of time to wait for the fault message to be delivered from the web service partner.

    Figure 51-15 shows this dialog:

    Figure 51-15 Emulate Dialog with Emulate Fault Selected

    Description of Figure 51-15 follows
    Description of "Figure 51-15 Emulate Dialog with Emulate Fault Selected"

    An example of a simulated fault message from a web service partner that you enter manually or load from a file is shown in Emulations.

  6. Click OK.