SOAP.addAttachment()

Signature

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

Domain

Parameters

NameTypeDescription
soapEventSimpleEventTo add attachment for this event
contentIDStringContent ID for this attachment
contentObjectString/byte[] representation of the content
contentTypeStringContent Type for this attachment

Returns

None.

Cautions

Ensure that content ids are not duplicate, when this function is called multiple times with different attachment content