On Wednesday 09 February 2011 1:24:24 pm Hardeep Singh wrote:
> Hi,
>
> Is it possible to enabled MTOM for only a specific method in the Web
> Service?
>
> I am using this way to enable MTOM.
>
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> Map<String, Object> mtomProperty = new HashMap<String, Object>();
> mtomProperty.put("mtom-enabled", Boolean.TRUE);
> factory.setProperties(mtomProperty);
>
> This enables it for all the methods, changes the content-type, adds message
> boundaries etc. Please let me know if this cannot be done.
The only way this could be done would be to add an interceptor at the very
start of the OUT chain that would look at the operation and set the "mtom-
enabled", Boolean.TRUE flag on the message just like above.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog