You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Simon Steinacker <si...@healthatnet.at> on 2008/02/26 16:54:11 UTC

Axis2 MTOM Response

Hello,

I have service that is also a client to other services. This service 
contains a method that is returning binary data. I want this data to be 
optimized over MTOM. BUT I cannot just use the

<parameter name="enableMTOM" locked="false">true</parameter>

in the axis2.xml, because the service is also a client to other services 
and these calls to the other services should not be sent over mtom.

How can I tell the application that it should send MTOM just for this 
current response and nothing else?

Thanks a lot for your help,
Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 MTOM Response

Posted by Simon Steinacker <si...@healthatnet.at>.
Thanks a lot, that worked out fine for me!
best regards,
Simon

Thilina Gunarathne wrote:
> Hi,
> You can make enableMTOM false in the Axis2.xml and then enable it only
> for the service or only for a particular operation using the
> services.xml for the service.
>
> <service>
>    <operation name=xxx>
>       <parameter name="enableMTOM" locked="false">true</parameter>
>     </operation>
> </service>
>
> One other way to make it flexible is to use "optional" as the value
> [1]. Then the service will respond with MTOM only if service received
> MTOM..
>  <parameter name="enableMTOM">optional</parameter>
>
> thanks,
> Thilina
>
> [1]  http://thilinag.blogspot.com/2007/07/improved-apache-axis2-attachment.html
> On Tue, Feb 26, 2008 at 10:54 AM, Simon Steinacker
> <si...@healthatnet.at> wrote:
>   
>> Hello,
>>
>>  I have service that is also a client to other services. This service
>>  contains a method that is returning binary data. I want this data to be
>>  optimized over MTOM. BUT I cannot just use the
>>
>>  <parameter name="enableMTOM" locked="false">true</parameter>
>>
>>  in the axis2.xml, because the service is also a client to other services
>>  and these calls to the other services should not be sent over mtom.
>>
>>  How can I tell the application that it should send MTOM just for this
>>  current response and nothing else?
>>
>>  Thanks a lot for your help,
>>  Simon
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>  For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>     
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 MTOM Response

Posted by Thilina Gunarathne <cs...@gmail.com>.
Hi,
You can make enableMTOM false in the Axis2.xml and then enable it only
for the service or only for a particular operation using the
services.xml for the service.

<service>
   <operation name=xxx>
      <parameter name="enableMTOM" locked="false">true</parameter>
    </operation>
</service>

One other way to make it flexible is to use "optional" as the value
[1]. Then the service will respond with MTOM only if service received
MTOM..
 <parameter name="enableMTOM">optional</parameter>

thanks,
Thilina

[1]  http://thilinag.blogspot.com/2007/07/improved-apache-axis2-attachment.html
On Tue, Feb 26, 2008 at 10:54 AM, Simon Steinacker
<si...@healthatnet.at> wrote:
> Hello,
>
>  I have service that is also a client to other services. This service
>  contains a method that is returning binary data. I want this data to be
>  optimized over MTOM. BUT I cannot just use the
>
>  <parameter name="enableMTOM" locked="false">true</parameter>
>
>  in the axis2.xml, because the service is also a client to other services
>  and these calls to the other services should not be sent over mtom.
>
>  How can I tell the application that it should send MTOM just for this
>  current response and nothing else?
>
>  Thanks a lot for your help,
>  Simon
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-user-help@ws.apache.org
>
>



-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org