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.

    Details

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

      Description

      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

        Activity

        sanderkerel Sander Hartogensis created issue -
        sanderkerel Sander Hartogensis made changes -
        Field Original Value New Value
        Attachment mtomtest.zip [ 15249 ]
        tareq Tareq Abedrabbo made changes -
        Attachment spring-ws_mtom_client.patch [ 15323 ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 1.5.7 [ 11173 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: