Using MTOM Streaming for Service First Provider Web Service Descriptors
The following lists the requirements for using MTOM streaming with a service first provider web service descriptor:
Before generating the web service descriptor, ensure the fields in the service signature for which you will want to use MTOM streaming are Objects that use the com.wm.util.XOPObject Java wrapper type.
In the service, add logic to handle MTOM streaming.
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.
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.