[
http://issues.apache.org/jira/browse/AXIS2-1065?page=comments#action_12430035 ]
robert lazarski commented on AXIS2-1065:
----------------------------------------
According to the wso2 article, the important part of generated code in the
Image class is here:
if (isReaderMTOMAware && java.lang.Boolean.TRUE.equals
(reader.getProperty(org.apache.axiom.om.OMConstants.IS_BINARY))){
//MTOM aware reader - get the datahandler directly and put it in the object
object.setImageAttachment((javax.activation.DataHandler) reader.
getProperty(org.apache.axiom.om.OMConstants.DATA_HANDLER)); }
else{
//Do the usual conversion
java.lang.String content = reader.getElementText();
object.setImageAttachment(org.apache.axis2.databinding.
utils.ConverterUtil.convertToBase64Binary(content)); }
reader.next();
However, as of the aug 23 svn that code is not generated nor is there any
reference to javax.activation.DataHandler .
Robert
> ADB / MTOM databinding is broken
> --------------------------------
>
> Key: AXIS2-1065
> URL: http://issues.apache.org/jira/browse/AXIS2-1065
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Reporter: robert lazarski
> Assigned To: Ajith Harshana Ranabahu
>
> The tutorial written by Ajith does not work with the latest SVN, as
> acknowledged by Ajith:
> http://www.wso2.net/articles/axis2/java/2006/08/10/binary-with-adb
> I have some samples to put into the mtom guide and perhaps the userguide and
> integration tests once I can get it to work. Just thought I'd track the
> issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]