In the Expression, Query, and other Builders you can select the following functions to work with attachments. These functions are under the
BPEL > Process Developer > Attachments
category.
Using a SOAP message to send nested attachments is not supported. if the you are sending SOAP messages with multiple attachments that we do not support nested attachments. While testing, you may want to set the SoapUI Disable multiparts property false.
Adds the attachment to the named variable specifying the content type and content. The return type is
xs:boolean.
If the creation fails, an attachment fault is thrown.
Parameters:
variableName: Name of the variable to add the attachment
contentType:MIME type of the attachment, such as
text/xml
or
image/jpg
encodedContent: String that contains Base64 encoded attachment data content
contentId: (Optional). A sting that refers to the content of the attachment. This parameter can be helpful in accessing a particular attachment when a message has multiple attachments.
Copies all attachments from the list of variables identified by the fromVariableNames
(xsd:string
list) to the variable identified by the toVariableName. The return type is xs:integer. If the copy fails, an attachment fault is thrown.
Parameters:
fromVariableNames: Names of the variables to copy from. You can enter a single name or multiple name separated with a space. Use * to indicate all in-scope variables.
toVariableName: Name of the variable to copy to
abx:removeAllAttachments(variableNames)
Deletes all attachments from the list of variables. The return type is
xs:integer
.
Parameter:
fromVariableNames: Names of the variables to copy from. You can enter a single name or multiple name separated with a space. Use * to indicate all in-scope variables.
abx:getAttachmentType(variableName, itemNumber)
Returns the MIME type of the attachment associated with the named variable.
Parameters:
variableName: Name of the variable containing the attachment
itemNumber: Item number of attachment starting at one