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/15 10:05:58 UTC
What will be content-type for multipart SOAP message?
Hello,
I am getting an error when I am trying to create SOAP message fro input
stream. The error is following:
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF in prolog
This is my code:
String contentType = "multipart/related; \r\n\tboundary="
+ "MIMEBoundaryurn_uuid_95DA0453C8FF348E681229331136789" + ";
\r\n\ttype=\"text/xml\"";
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 my content-type is correct to create SOAP from input stream? Could you
please tell me where I am going wrong? I am using Axis2 1.4.1.
Chinmoy