Thanks Andreas for the quick response, But I am adding the attachment in outMsgContext on the server side. There is no argument in the web service method that represents the attachment.
Should I still retrieve the attachment from OMText node? If yes, do you have a sample to retrieve it from OMText? Thanks, Asmita -----Original Message----- From: Andreas Veithen [mailto:[email protected]] Sent: Thursday, February 12, 2009 2:48 PM To: [email protected] Subject: Re: WS Client-dataHandler from Content-ID (using MTOM) : File upload Webservice 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 > >
