...
Add the Attachment Handler tool as an output to the SOAP Client or Message Responder . In the Add Output wizard, choose Response > Attachment from the left pane, Attachment Handler from the right pane, and click Finish.(right-click > Add Output).
- The attachment handler opens in your workspace. You can also double-click the Attachment Handler node to open it. The Attachment Handler operations are:Double-click the Response Attachment > Attachment Handler node. The following Attachment Handler operations are shown in the right GUI panel.
- Attachment sorting options: Specifies how attachments are sorted.
- Attachments from previous response: Shows available MIME attachments by Index , and Content-ID, and Base 64 Decode.
- Output Headers: Enable to output MIME Attachment Headers. If this option is enabled, both the MIME Response Header and Body can be output. By default, only the MIME Response Body is output.
- Selected Attachment: Shows the MIME attachments returned in the XML response in text form.
- Expected number of attachments: Specifies the expected number of attachments.
- Fail test on mismatches: Enable to make the test fail if the number of expected attachments specified does not match the actual number of attachments received by the Attachment Handler Tool.
Attaching Outputs to the Attachment Handler
...
- Right-click the desired Attachment Handler node and choose Add Output.
- From the Add Output wizard, complete one of the following:
Choose All Attachments from the left pane and the desired output tool from the right pane and click Finish. The tool selected will be applied to all Response MIME Attachments specified in the Attachment Handler tool.
Choose Attachment # from the left pane and the desired output tool from the right pane and click Finish. The tool selected will be applied to the specific Attachment corresponding to the chosen Index number in the Available Attachments list.
- Note: Any Extension Tools chained to an Attachment Handler will receive a jakarta.activation.DataHandler object for input.