webMethods CloudStreams 10.3 | webMethods CloudStreams Documentation 10.3 | Cloud Connections, Services, and Connector Listeners | Support for Message Transmission Optimization Mechanism (MTOM)
 
Support for Message Transmission Optimization Mechanism (MTOM)
MTOM is a specification that enables clients to exchange binary data with Web service providers in an optimized way. MTOM is used in conjunction with XOP (XML-binary Optimized Packaging) specification.
CloudStreams allows you to send binary data as a Base64 encoded format, using the MTOM specification.
If you are a connector developer, and want to make a SOAP operation (that is involved in sending the binary data) MTOM enabled, set the enableMtom property to true in the Connector XML file:
<operation …>
<properties>
<property name="enableMtom" value="true" type="boolean"/>
</properties>
</operation…>
When the enableMtom property is set to true, the message contains additional MIME parts as per the MTOM specification, which are referred to in the SOAP message body.
If you are a connector user, in Software AG Designer, do the following to exchange binary data using the MTOM specification:
*Use the pub.file:getFile service to retrieve the file as binary data.
*Use the pub.string:base64Encode service to encode the binary data as a Base64 string.
*Map the encoded string to a field in a cloud connector service, the Content Type of which is base64Binary.
Note: See the webMethods Integration Server Built-In Services Reference for information on the pub.file:getFile and pub.string:base64Encode services.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.