Forcing MTOM output for faults with CXF in EAP 6

Solution Unverified - Updated -

Issue

  • CXF is returning SOAP faults with Content-Type of application/soap+xml;charset=UTF-8 and successful submissions with a ContentType of multipart/related;type="application/xop+xml" when we have enabled MTOM. How to force xop+xml Content-Type for all responses?
  • Previous web service implementation, Metro, returned MTOM output, or multipart mime, for both success and fault responses while CXF is only using MTOM for non-fault responses.
  • Forcing MTOM enabled web service to use MTOM for faults as well as successful operations

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • CXF web service

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.