[SWS-825] Binary data get inlined when using JAXB for marshaling MTOM-enabled Axiom SOAP messages Created: 19/Feb/13  Updated: 09/Apr/13  Resolved: 09/Apr/13

Status: Resolved
Project: Spring Web Services
Component/s: None
Affects Version/s: 1.5.10, 2.1.2
Fix Version/s: 2.1.3

Type: Bug Priority: Major
Reporter: Michal Jemala Assignee: Arjen Poutsma
Resolution: Deferred Votes: 0
Labels: axiom, inline, mtom, multipart, saaj, xop
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File AxiomJaxbMtomClient.java     Java Source File Driver.java     XML File applicationContext.xml     File dumps.tar.gz    
Issue Links:
depends on SWS-826 Improving AXIOM support in Srping WS Resolved


When using Axiom and JAXB in conjunction binary data will be inlined instead of sent as a attachment within a MIME multipart message. This does not occur when using plain Axiom API to construct a message or SAAJ instead (see dumps.tar.gz attachments for HTTP communication trace).

Use mtom samples distributed with Spring WS itself plus the attached modified/created files to replicate the issue.

This may be related to the method org.springframework.ws.soap.axiom.AxiomSoapMessage.convertToXopPackage() always returning FALSE when asked for from the JAXB attachment marshaller.

Comment by Arjen Poutsma [ 09/Apr/13 ]

Unfortunately, this issue cannot be resolved at this moment, due to the way we use Axiom. However, there are plans to improve the Axiom support (SWS-826) and hopefully this issue can be resolved as part of that effort.

Generated at Mon Dec 17 16:44:13 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.