How to send multiple attachments to REST service through Invoke activity?

How to send multiple attachments to REST service through Invoke activity?

book

Article ID: KB0082233

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks BW 6.x

Description

If a REST service is expecting more than one attachment of text and binary data type from a client, you can use the Invoke activity to send multiple attachments.

 

Issue/Introduction

If a REST service is expecting more than one attachment of text and binary data type from a client, you can use the Invoke activity to send multiple attachments.

Environment

All

Resolution

If you want to send the multiple attachments from a BW client, you can use the Invoke activity and configure the required attachments at a binding level. Once you configure the Request at Binding level in Operation, you will able to see the required details within the Invoke activity Input tab. You need to follow the steps below to configure the multiple attachments in the Invoke activity.

Configure your binding operation to send the multiple attachment.
-> Go to binding.
-> Select operation that you are accessing.
-> Select request.
-> Inside Form parameter, create a parameter and name it and select the type "File/Text or File/Binary" and save it.
-> Go back to input of the Invoke activity.
-> Provide the required filename and contents.


 

Additional Information

Refer to the attached (Filename: Application demonstrate the solution.zip ) for reference.

Attachments

How to send multiple attachments to REST service through Invoke activity? get_app