How to change the content-type of the attachments when using MTOM attachments in Service activity?
book
Article ID: KB0092976
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Description:
By default, BW hardcodes the content-type of MTOM attachments to octet-stream. BW will provide an option so that users can change the content-type of the attachments when using MTOM in Service activity. This has been fixed in BW 511 hotfix 16. To make it work with BW 511 hotfix 16, follow instructions in the Resolution section of this article.
Resolution
1). Add "xmlmime.xsd" file into your project. (You can copy it from the attached project, filename: Service_MTOM.zip).
2). In your WSDL/schema, change the binary element type as follows. (Picture is the element for the sample project).