I've figured it out, just had to do the following:

JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();

Client client = dcf.createClient(<my wsdl url>);

client.getRequestContext().put("mtom-enabled", Boolean.TRUE);

Cheers,

Jon.
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/JaxWsDynamicClientFactory-and-MTOM-tp3375832p3375922.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to