Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-303

SOAP mime attachments: does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • beta-3
    • None
    • None
    • Operating System: Windows XP
      Platform: Other
    • 12358

    Description

      SOAP MIME attachemnt errors, soap DIME attachments work

      First, if we create a soap message and add mime attachments and save it to
      disk, the first mime headers are filtered, so the file is not correct mime
      There is a workaround by setting the static filter to null
      org.apache.axis.attachments.MimeUtils.filter=null;

      Second, the real bug: we cannot read the mime file created before
      the mime file is ok, but reading it with axis:

      Error reading data stream: Error in MIME data stream, start boundary not
      found, expected: --null

      at org.apache.axis.attachments.MultiPartRelatedInputStream.<init>
      (MultiPartRelatedInputStream.ja
      va:358)
      at org.apache.axis.attachments.AttachmentsImpl.<init>
      (AttachmentsImpl.java:150)
      at Simple.readSoapWithAttachments
      (C:/cafe/Projects/Soap_apache_axis/Simple.java:208)
      at Simple.main(C:/cafe/Projects/Soap_apache_axis/Simple.java:37)

      Error reading data stream: Error in MIME data stream, start boundary not
      found, expected: --null

      at org.apache.axis.attachments.MultiPartRelatedInputStream.<init>
      (MultiPartRelatedInputStream.java:358
      )
      at org.apache.axis.attachments.AttachmentsImpl.<init>
      (AttachmentsImpl.java:150)
      at Simple.readSoapWithAttachments
      (C:/cafe/Projects/Soap_apache_axis/Simple.java:208)
      at Simple.main(C:/cafe/Projects/Soap_apache_axis/Simple.java:37)

      see source attached

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--1.txt
          2 kB
          Tony Nys
        2. ASF.LICENSE.NOT.GRANTED--2.mime
          6 kB
          Tony Nys
        3. ASF.LICENSE.NOT.GRANTED--2.txt
          3 kB
          Tony Nys
        4. ASF.LICENSE.NOT.GRANTED--mime.txt
          6 kB
          Davanum Srinivas
        5. ASF.LICENSE.NOT.GRANTED--Test.java
          0.8 kB
          Davanum Srinivas

        Activity

          People

            Unassigned Unassigned
            tony.nys@aditel.be Tony Nys
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: