Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Parsing Attachments

The following functions enable you to work with SOAP attachments in the request message:

    getNumberOfAttachments(SimpleEvent inSOAPEvent)
    getAttachmentContentID(SimpleEvent inSOAPEvent, int Index)
    getAttachmentContentType(SimpleEvent inSOAPEvent, int Index)
    getAttachmentContent(SimpleEvent inSOAPEvent, int Index)
    getAttachmentContentByContentID(SimpleEvent inSOAPEvent, string contentID)

The content ID is the attachment identifier. You can select which attachment to work with using its index position. First get the count of the attachments using `getNumberOfAttachments()`. Then using the index, you can get the content ID and content type, as well as the attachment content itself.

The content is returned in byte form, so after you get the content, you must then use other functions to make the content human-readable.

For an example, see http://www.w3.org/TR/SOAP-attachments#SOAPReferenceToAttachements.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.