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

          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: