Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-496

SpringWS client does not send Mtom attachments - it inlines them instead.


    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7
    • Component/s: None
    • Labels:
    • Environment:
      Vista, JDK6, Tomcat 5.5.27, Axiom 1.2.8.


      The actual problem that I have is that I cannot send large attachments with SpringWS-client.

      I suspect the cause is that MTOM encoding in Spring does not work, even though mtomEnabled in org.springframework.oxm.jaxb.Jaxb2Marshaller is set to true. Without MTOM encoding the whole attachment is inlined, in memory, and then OutOfMemoryErrors can quickly occur.

      With a Tcp monitor you can see that MTOM does in not work, while it does work with Axis. I demonstrate this in an Eclipse project, that I will try to attach to this issue.

      Because of this, we are now forced to use Axis in our otherwise Spring-dominated project. This is quite unsatisfying.

      1. spring-ws_mtom_client.patch
        8 kB
        Tareq Abedrabbo


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        51d 18h 40m 1 Arjen Poutsma 14/May/09 8:16 PM
        In Progress In Progress Resolved Resolved
        3d 1h 3m 1 Arjen Poutsma 17/May/09 9:19 PM
        Resolved Resolved Closed Closed
        1082d 9h 44m 1 Arjen Poutsma 04/May/12 7:03 AM


          • Assignee:
            arjen.poutsma Arjen Poutsma
            sanderkerel Sander Hartogensis
          • Votes:
            0 Vote for this issue
            2 Start watching this issue


            • Created: