The contract between sender and receiver is the WSDL. Our MTOM implementation optimizes binary data when it encounters xmime tagged schema elements.
Future versions will go one step further and do it based on a size threshold.
I.e it would be possible to either enforce or completly disable MTOM by tweaking the threshold value.
thx for your reply.. the reason I ask is that I have tried to invoke the MTOM samples in the 1.0.1 release without actually sending the binary data with MTOM (I just left it in the request body..).. jbossws returns an error in this situation; "xop:Include not found..", from my point of view this should still work though.. (you cant be sure that the client supports MTOM..)..
should I report this as a bug in JIRA or am I misunderstanding something?
You could move this discussion to the design forum and we continue from there.