Integration Server 10.5 | Web Services Developer’s Guide | MTOM Streaming | Using MTOM Streaming for WSDL First Provider Web Service Descriptors
 
Using MTOM Streaming for WSDL First Provider Web Service Descriptors
The following lists the requirements for using MTOM streaming with a WSDL first provider web service descriptor:
*When creating the WSDL first provider web service descriptor, select the Enable MTOM streaming for elements of type base64Binary check box.
This selection indicates that when creating the web service descriptor, Designer should represent the xsd:base64Binary types in the WSDL as Object types with the Java wrapper type com.wm.util.XOPObject. As a result, you will be able to use MTOM streaming for the xsd:base64Binary fields.
*In the service used as an operation, add logic to handle MTOM streaming for the xsd:base64Binary fields.
*To process an inbound request message, for each MTOM attachment that is streamed, use the pub.soap.utils:getXOPObjectContent service to retrieve the contents of a com.wm.util.XOPObject instance as a stream.
After processing the contents of the stream, close the stream by invoking the pub.io:close service.
*For an outbound response message, for each MTOM attachment that is to be streamed use the pub.soap.utils:createXOPObject service to create an instance of the com.wm.util.XOPObject class from an input stream for the attachment to stream.
*Configure the server configuration parameters identified in Integration Server Parameters for MTOM Streaming.
*If you want to stream outbound MTOM attachments, set the web service descriptor’s Attachment enabled property to true.
*Ensure the Pre-8.2 compatibility mode property of the web service descriptor is set to false. The web service descriptor must not be running in compatibility mode.