- TIBCO BusinessEvents®
- Standard
- SOAP

# SOAP.addAttachment()

## Signature

`void addAttachment(SimpleEvent soapEvent,String contentID, Object content,String contentType)`

## Domain

ACTION, BUI

## Description

Adds a new attachment to the SOAP message.

## Parameters

Name | Type | Description
--- | --- | ---
`soapEvent` | `SimpleEvent` | To add attachment for this event
`contentID` | `String` | Content ID for this attachment
`content` | `Object` | String/byte[] representation of the content
`contentType` | `String` | Content Type for this attachment

## Returns

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