Hi Brando, Did you intend this for use with Axis2? There's a restructuring of the Axis2 attachment handling going on now, and I'm planning to use this to add JiBX attachment support (the previous code was heavily ADB-specific). The bad news is it probably won't be in place until the Axis2 1.6 release (and that's likely to be sometime next year).
I'm also planning to add MTOM support to JiBX/WS, which should be available sooner. Either way, BindGen doesn't recognize this yet. I'll see about adding something so you can use a customization for this purpose. - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Arguello, Brando wrote: > > Does JIBX support MTOM? With jibx_1_2_1 and JDK 1.6…. > > I've been unable to generate a binding file using BindGen with an > input object contains a String and javax.activation.DataHandler . > > When I run java -cp jibx-tools.jar;bin > org.jibx.binding.generator.BindGen com.FileTransferSO (The object with > the DataHandler) I get the following exception.. > > Exception in thread "main" java.lang.IllegalStateException:* No way to > handle type javax.activation.DataHandler*, referenced from > com.FileTransferSO > > I'm using DataHandler as the payload container for a byte[] in MTOM. > > jibxCompile fails when I use a manually created binding.xml. > > Using byte[] seems to work with jibxCompile but I'm not sure if the > byte[] is part of the SOAPBody or an AttachmentPart in the SOAPMessage. > > Thank You. > -Brando > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-devs mailing list > jibx-devs@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-devs > ------------------------------------------------------------------------------ _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs