[JAX-WS] 3 ways to enable MTOM in JAX-WS on the server side

1. Enable using @javax.xml.ws.soap.MTOM annotation on the endpoint implementation class

2. MTOM can be also be enabled on an endpoint by specifying enable-mtom attribute to true on an endpoint
element in sun-jaxws.xml deployment descriptor.

3. Enable using @BindingType on the endpoint (SEI) implementation class

will enable MTOM on the deployed endpoint for SOAP 1.1 binding

will enable MTOM on the deployed endpoint for SOAP 1.2 binding

Leave a Reply

Your email address will not be published. Required fields are marked *