This content has been marked as final.
Show 2 replies
-
1. Re: jboss-saaj attachmentpart problem
p_nevilleuk Dec 17, 2004 9:13 AM (in response to p_nevilleuk)Does this relate to
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1039881&group_id=22866?
If so, is when will able stable version of 4.0.1 be available?
Thanks -
2. Re: jboss-saaj attachmentpart problem
p_nevilleuk Dec 17, 2004 10:28 AM (in response to p_nevilleuk)Okay, I have a solution. I was using:
AttachmentPart attachmentPart = message.createAttachmentPart(); attachmentPart.setContentId("<payload-1>"); attachmentPart.setMimeHeader("Content-Type", "text/xml"); attachmentPart.setContent(new JDOMSource(document), "text/xml"); message.addAttachmentPart(attachmentPart);
Now I am successfully using:org.jdom.Document document = new Document(); document.setRootElement(new org.jdom.Element("PayloadTest")); javax.activation.DataHandler handler = new javax.activation.DataHandler(new JDOMSource(document), "text/xml"); AttachmentPart attachmentPart = message.createAttachmentPart(handler); attachmentPart.setContentId("<payload-1>"); attachmentPart.setMimeHeader("Content-Type", "text/xml");
I guess it must be the DataHandlers in use by Axis?
If anyone has an explanation, I would like to know!