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

Reply via email to