Hhmm, that's a neat idea. I'll give it a try even though the MIME type
annotation on the generated Java class' content attribute will be
@XmlMimeType("*/*") instead of @XmlMimeType("image/*").
On 21.09.2012 16:07, Daniel Kulp wrote:
I'm wondering if it might be possible to run the wsdl2java stuff on a slightly
modified wsdl. An XSLT could likely take the original WSDL, replace the
expectectContentTypes with something like:
<xs:element name="content" type="xs:base64Binary"
xmime:expectedContentTypes="image/jpeg, image/png, image/gif, application/octet-stream"/>
and then run the wsdl2java on that modified WSDL. That should then get the
DataHandler instead. The runtime and everything could still use the original
WSDL.
--
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org