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();
> OMText binaryNode = (OMText) ele.getFirstOMChild();
> DataHandler dh = (DataHandler)binaryNode.getDataHandler();
>
> it gives error "content id is null".the content-type is not binary and
> it should be "application/msword". How do get the correct content-type from
> this returned datahandler?
>
>
> Chinmoy