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.
Copyright © TIBCO Software Inc. All rights reserved.