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