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

Reply via email to