Description of problem: If you specify @MTOM(enabled=false) MTOM will still be enabled. Version-Release number of selected component (if applicable): JBossWS-CXF 4.3.1 How reproducible: Create web service method with @MTOM(enabled=false) annotation on the class. Steps to Reproduce: 1. Create MTOM web service with @MTOM(enabled=false) 2. Enable mtom on client Actual results: It will still send responses as if MTOM is enabled. Expected results: MTOM should not be used. Additional info: https://issues.jboss.org/browse/JBWS-3863
Alessio Soldano <asoldano> updated the status of jira JBWS-3863 to Resolved
The fix is in JBossWS-CXF, not Apache CXF, so I'm changing the linked upgrade BZ.
Assigning back to Alessio as the there is a patch already.
Created attachment 1002290 [details] MTOM patch for jbossws cxf 4.3.x
Adding an integration test : https://github.com/panossot/eap-additional-testsuite/tree/master/web/src/test/java/org/jboss/test/integration/mtom
Please include test in AS TS or component TS. I tried reproducer from Comment 8, here is some feedback: - I can't compile it as it depends on SNAPSHOT stuff - it's testing that rss.png is transported - it doesn't check if it was encoded using base64 or attached to the soap as attachment (application/octet-stream) - please check for example http://www.crosschecknet.com/intro_to_mtom.php to see the attachment example - why is test depending on org.jboss.test.integration.mtom.MtomTestCase-output.txt file, when the test is refactored it can cause troubles
Rostislav can you check the test again? Can you compile now? -- https://github.com/panossot/eap-additional-testsuite/tree/master/web/src/test/java/org/jboss/test/integration/mtom . I will try, also to add an additional test with what you ask.
I can compile now, but please enhance the test and please consider including it into AS TS.
Added an additional testCase that proves the soap message does not use xop-format (MTOM) : https://github.com/panossot/eap-additional-testsuite/blob/master/web/src/test/java/org/jboss/test/integration/mtom/MtomSaopTestCase.java
* https://github.com/panossot/eap-additional-testsuite/blob/master/web/src/test/java/org/jboss/test/integration/mtom/MtomSoapTestCase.java
Alessio Soldano <asoldano> updated the status of jira JBWS-3863 to Closed
JBossWS-CXF 4.3.5.Final has been tagged by Alessio : http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-4.3.5.Final/
Updating the link for mtom test cases : https://github.com/panossot/eap-additional-testsuite/tree/master/web/src/test/java/org/jboss/test/integration/mtom
Verified with 6.4.2.CP.CR1
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.