Mtom optimization doesn't work when using simple bean
-----------------------------------------------------
Key: WSCOMMONS-551
URL: https://issues.apache.org/jira/browse/WSCOMMONS-551
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Affects Versions: Axiom 1.2.9
Environment: Tomcat 6.0.28 - axis2 1.5.1 - axiom 1.2.9
Reporter: Giambattista Pisasale
Attachments: prova-0.1.aar
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.