Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4768

Mtom optimization doesn't work when using simple bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.2, 1.6.0
    • adb
    • None
    • Tomcat 6.0.28 - axis2 1.5.1 - axiom 1.2.9

    Description

      Tested with Linux and Windows, 32 and 64 bit, with Java 6 sun. Using soapUi, java client or c# wse3.0 client.

      Hello
      I tested a simple axis2 1.5.1 service using axiom 1.2.9 libs downloaded from here: http://repository.apache.org/snapshots/org/apache/ws/commons/axiom/
      with a simple method like this:
      Document getDocument(String id)

      The class Document contains two fields:
      String uuid
      DataHandler fileContent

      Mtom optimization doesn't work calling the service method, the file content is printed inline and not as an attachment/xop included

      Same service AAR work with axiom 1.2.8

      Result:
      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      <ns:getDocumentResponse xmlns:ns="http://www.wso2.org/types">
      <return xsi:type="ax2282:Document" xmlns:ax2282="http://dao.dlsvc.webscience.it/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UUID>uuidprova</UUID>
      <fileContent>/9j/4A..........................</fileContent>
      </return>
      </ns:getDocumentResponse>
      </soapenv:Body>
      </soapenv:Envelope>

      I think this is a regression.

      thanks
      regards

      Attachments

        1. prova-0.1.aar
          91 kB
          Giambattista Pisasale

        Activity

          People

            veithen Andreas Veithen
            giambattista Giambattista Pisasale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: