JBoss.org Community Documentation
This chapter describes Message Transmission Optimization Mechanism (MTOM) and XML-binary Optimized Packaging (XOP), a means of more efficiently serializing XML Infosets that have certain types of content. The related specifications are
SOAP Message Transmission Optimization Mechanism ((MTOM) http://www.w3.org/TR/soap12-mtom/)
XML-binary Optimized Packaging (XOP) (http://www.w3.org/TR/xop10/)
image/jpeg |
java.awt.Image |
text/xml |
javax.xml.transform.Source |
application/xml |
javax.xml.transform.Source |
application/octet-stream |
javax.activation.DataHandler |
Table 5.1. Supported MTOM parameter types
The above table shows a list of supported endpoint parameter types. The recommended approach is to use the javax.activation.DataHandler classes to represent binary data as service endpoint parameters.
Microsoft endpoints tend to send any data as application/octet-stream. The only Java type that can easily cope with this ambiguity is javax.activation.DataHandler