I'm not aware of how to do so via an external binding file. But the xmime:expectedContentTypes value within the WSDL ( http://www.jroller.com/gmazza/entry/using_mtom_and_apache_fop), allows you to specify the MTOM data type you'd like without Java annotations. If the original poster doesn't want to add xmime:expectedContentTypes to the local copy of his WSDL that he uses to generate the JAX-WS artifacts, he can rig-in an XSLT to add that value, and run wsdl2java on the XSLT's output WSDL instead of the original one. Alternatively, make a copy of his WSDL, add the attribute to *that* one, and run wsdl2java on that modified one, leaving his original WSDL untouched. But kind of silly if you ask me.

Glen

On 12/06/2012 02:28 PM, edbras wrote:
Is this possible?
That is: generating the MTOM stuff through the external binding file?
Instead of through annotations.
- Ed



--
View this message in context: 
http://cxf.547215.n5.nabble.com/generate-DataHandler-fields-tp547381p5719866.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to