Details
Description
handleMessage(..) in WSS4JOutInterceptor disables mtom silently:
public void handleMessage(SoapMessage mc) throws Fault {
//must turn off mtom when using WS-Sec so binary is inlined so it can
//be properly signed/encrypted/etc...
if (!mtomEnabled)
....
}
It would make sense to add a log warning if the client is configured to use mtom and the WSS4JInterceptor:
public void handleMessage(SoapMessage mc) throws Fault {
//must turn off mtom when using WS-Sec so binary is inlined so it can
//be properly signed/encrypted/etc...
if(mc.get(org.apache.cxf.message.Message.MTOM_ENABLED) == true &&
!mtomEnabled) { log.warn("Incomatible configurations .... bla bla bla"); }
if (!mtomEnabled) { mc.put(org.apache.cxf.message.Message.MTOM_ENABLED, false); }
....
}