Wildfly 10 JAX-WS attachements: MTOM threshold not working as expected (?)
I have a JAX-WS endpoint defined by annotation @MTOM
and setting a threshold as shown below. So I expect any attachments less than 5MB to be sent in-line as base64binary
. But the answer to the soap always comes back as MTOM
for even small files.
Is this the expected behavior? How can I apply this flexibility otherwise?
@HandlerChain(file="/handler-chain.xml")
@MTOM(threshold=5242880) // 5MB limit for inline soap attachements else MTOM
public class WSImpl {
I'm interested in this behavior . It's not a specification, but at least the Metro
implementation behaves like (at least the old version) in jboss 5. Apache CXF
always dispatches as MTOM
if enabled and doesn't care about the threshold.
source to share
No one has answered this question yet
Check out similar questions: