You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chinmoy Chakraborty <cc...@gmail.com> on 2008/12/16 10:53:31 UTC
Error creating SOAP with attachment from inputstream
Hi All,
I am getting following exception while creating SOAP with attachment from
inputstream.
org.apache.axiom.om.OMException: Part content ID cannot be blank for non
root MIME parts
My content-type is,
contentType = multipart/related;
boundary=MIMEBoundaryurn_uuid_6FD2F9D57FDEDE63A71229321356664;
type="text/xml";
start="<soappartttt-1>"
This is my code:
MimeHeaders mimeHeaders = new MimeHeaders();
mimeHeaders.addHeader("Content-Type", contentType);
// Create the SOAP Message using mimeHeader and inputStream
MessageFactory mf = MessageFactory.newInstance();
soapMsg = mf.createMessage(mimeHeaders, pin);
Is this axis2 bug? or I am missing something?
Chinmoy