Re: "Content id is null" for MTOM attachment

2009-03-26 Thread Andreas Veithen
Chinmoy, Do you have a transcript of the message that this code is processing? Andreas On Wed, Mar 25, 2009 at 11:31, Chinmoy Chakraborty wrote: > Hi, > I am returning a .doc file as an MTOM attachment for a service. When I do >   OMElement ele = retVal.getFirstElement(); >   OM

"Content id is null" for MTOM attachment

2009-03-25 Thread Chinmoy Chakraborty
Hi, I am returning a .doc file as an MTOM attachment for a service. When I do OMElement ele = retVal.getFirstElement(); OMText binaryNode = (OMText) ele.getFirstOMChild(); DataHandler dh = (DataHandler)binaryNode.getDataHandler(); it gives error "content id is null"..