Asmita, In Axis2, MTOM attachments are represented as OMText nodes in the object model of the message. You can retrieve the data handler by calling getDataHandler on the OMText instance and casting the result to DataHandler.
Andreas On Thu, Feb 12, 2009 at 20:29, Attharkar, Asmita <[email protected]> wrote: > Hi, > > > > I have a web service that uploads the attachment so that it can be received > by the client. > > The web service is working fine and is also updoading a file. And I see a > success response on the client side. > > I can also obtain the ContentId from the Content Id List from the Attachment > map (from the MsgContext after the request is executed). > > But my content Id is in format: > > (String)contextIdArray[i] = > 0.urn:uuid:[email protected] > > > > How can I do getAttachment() on msg context? Meaning mostly the samples that > I see on the web are for SwA, but I would like to use MTOM for my web > service. > > Any leads? > > Finally I want to be able to obtain the dataHandler so I can write the file > on my disk on the client side. > > > > Thanks, > > Asmita > > > > > > ________________________________ > > (Tel) 732-699-4657 | 4B566 | Telcordia Technologies | Piscataway NJ 08854 > >
