JBoss.org Community Documentation

5.7. Enabling MTOM per endpoint

On the server side MTOM processing is enabled through the @BindingType annotation. JBossWS does handle SOAP1.1 and SOAP1.2. Both come with or without MTOM flavours: MTOM enabled service implementations

package org.jboss.test.ws.jaxws.samples.xop.doclit; 
	
	import javax.ejb.Remote; 
	import javax.jws.WebService; 
	import javax.jws.soap.SOAPBinding; 
	import javax.xml.ws.BindingType; 
	
	@Remote 
	@WebService(targetNamespace = "http://org.jboss.ws/xop/doclit") 
	@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) 
	@BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")                         (1) 
	public interface MTOMEndpoint { 
	
	[...] 
	}