CXF is adding MTOM to SOAP XML even in cases when it is not actually used

Solution Unverified - Updated -

Issue

We are migrating to JBoss EAP 6.4 with CXF for webservices and MTOM is being added to all responses from our webservices even though it only sometimes has an actual MTOM attachment. Is there a way to disable this so it will only enable MTOM on the individual responses that actually use it?

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.x
Red Hat JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.