JBoss.org Community Documentation

5.6. MTOM/XOP

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

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.

Note

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