- TIBCO BusinessEvents®
- Standard
- SOAP

# SOAP.addFaultPart()

## Signature

`void addFaultPart (SimpleEvent soapEvent,String faultCode,String faultMessage,String faultActor,String faultDetailString)`

## Domain

ACTION, BUI

## Description

Adds a <fault> element to the standard SOAP body

This can be used to build response SOAP body

## Parameters

Name | Type | Description
--- | --- | ---
`soapEvent` | `SimpleEvent` | SOAP event
`faultCode` | `String` | The mandatory fault code
`faultMessage` | `String` | The mandatory fault message
`faultActor` | `String` | The optional Fault actor
`faultDetailString` | `String` | Optional XML string representing the fault detail

## Returns

Type | Description
--- | ---
`void` |