I'm not sure exactly what you want but I am doing the same thing in my
code:

OMElement result =
element.getFirstChildWithName(RSConstants.RS_RESULTSET);
                        if(result == null)
                                throw new
PublicationExtractorException("No resultSet found in DDMS document");
                        OMText binaryNode = (OMText)
result.getFirstOMChild();
                        if(binaryNode == null)
                                throw new
PublicationExtractorException("No data returned in resultSet");

                        return (DataHandler)
binaryNode.getDataHandler();

This will return a DataHandler for the MTOM binary node.

Roshan Punnoose
Phone: 301-497-6039

-----Original Message-----
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 06, 2006 12:52 AM
To: [email protected]
Subject: Re: [Axis2] Retrieving an MTOM attachment

Hi,

> But when I traverse the "reportElement" there is only one child
element
> i.e the "xop:Include" element. I can never get to the attachment
itself.
This can't be... Axis2 should automatically detect XOP:include and
should create an OMText instead of XOP:Include...

If possible please post your message snapshots and the client code...
I would appreciate if you can do it soon, since we need to figure out
whether this is a bug prior to the release...

Thanks,
Thilina

> How do I rertieve the binary data which is outside the soap envelope?
> Appreciate any help..
>
> Thanks,
> Sathija.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to