In TIBCO BusinessWorks(BW)how to configure soap service using MTOM for attachments?

In TIBCO BusinessWorks(BW)how to configure soap service using MTOM for attachments?

book

Article ID: KB0088479

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
============

In TIBCO BusinessWorks(BW)  how to configure soap service using MTOM for attachments?


Environment:
===========

-  TIBCO ActiveMatrix BusinessWorks(TM) (BW) 5.7.0 or higher
-  SOAP specification 1.2



Resolution:
===========

For configuration of SOAP service for sending / receiving attachments using MTOM, refer two projects attached here with the sotution.

(A)  In attached project (SoapMTOM.zip) it demonstrated how to use MTOM in BW 5.7.0.
In the project, process ‘MTOMServer.process’ demonstrates the usage of MTOM in server side, and process ‘testClient.process’ demonstrates the usage of client side.

There are few things needed while using MTOM in BW:
********************
1.   Must use BW 5.7.0 or higher.
2.   As MTOM is a feature only available for element content that is in a canonical lexical representation of the xs:base64Binary data type, make sure the elements which want to use MTOM are based on xs:base64Binary type in the schema definitions.
3.   As MTOM is based on SOAP 1.2 specification, choose "SOAP 1.2" in SOAPEventSource -> Configuration -> Soap Version.
4.   If you want to use MTOM in SOAP response, Make sure to choose ‘MTOM’ in SOAPEventSource->Advanced->Output Attachments Binding->Attachment Style.
5.   As you want to use MTOM in SOAP Request Reply, at client side, make sure to choose "MTOM" in SOAPRequestReply->Configuration->Attachment Style.
********************

(B)  In attached project (Service_MTOM_571.zip), it shows use of Service palette with MTOM attachments which is similar to SOAP Event Source.
The related configuration can be set on:
Service -> Configuration Tab -> PortType -> Endpoint Bindings ->SOAP Details
Point Soap Version to SOAP 1.2, then on the Advanced SOAP Settings window,
you can choose ‘MTOM’ in Advanced SOAP Settings -> Output Attachments -> Attachment Style.


Attachments:
============
1. SoapMTOM.zip (Sample Program)
2. Service_MTOM_571.zip (Sample Program)
3. AdvancedSOAPSettings.jpg (Screenshot)
4. SoapDetails.jpg (Screenshot)

Issue/Introduction

In TIBCO BusinessWorks(BW)how to configure soap service using MTOM for attachments?

Attachments

In TIBCO BusinessWorks(BW)how to configure soap service using MTOM for attachments? get_app