users@jax-ws.java.net

Re: enable-mtom value at runtime

From: Florian Rengers <rengers_at_grit.de>
Date: Fri, 21 Apr 2006 17:46:01 +0200

Thanks, but I think that this works only during initialisation of the
endpoints.

My intention is that the service can change the encoding for every
request, so that the client can choose the handling of opaque data.

Is this possible?

Florian

Vivek Pandey wrote:

> You can use binding id in @BindingType annotation to enable mtom
> binding on the endpoint implementor class:
>
> @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING)
>
> or
>
> @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING)
>
>
> Similarly you can disable mtom using:
>
> @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP+"?mtom=false")
>
>
> or
>
> @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP+"?mtom=false")
>
>
>
> Please note that, if deployment descriptor overrides any runtime
> setting, so if the DD has enable-mtom attribute that enables/disables
> mtom, it overrides any runtime mtom setting.
>
> -vivek.
>
> Florian Rengers wrote:
>
>> Hi,
>>
>> is it possible to get and and set the "enable-mtom" property of a
>> JAX-WS service at runtime like it is possible with the
>> "mtom-threshold-value"?
>>
>> Florian
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>>
>