axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjula Peiris <manj...@wso2.com>
Subject Re: Programatically enabling MTOM (AXIS2c Server side)
Date Thu, 19 Mar 2009 15:58:17 GMT
Can you set the parameter enableMTOM at the service level. I mean
removing it from the operation tag and set in as a child of service
tag. 

On Wed, 2009-03-18 at 18:19 +0100, Kuba Tomiczek wrote:
> Hello,
> 
> When I enable MTOM for serving just one request in the services.xml the 
> server does not see this (All the requests are served like there is no 
> MTOM at all...)
> Do I something wrong?
> The fragment of my services.xml with MTOM enabled is:
> 
> <operation name="ClassificationUpdate">
> <parameter 
> name="wsamapping">http://localhost:9090/Service/ClassificationUpdate</parameter>
> </operation>
> <operation name="GetTermInfoIndex">
> <parameter name="enableMTOM">true</parameter>
> <parameter 
> name="wsamapping">http://localhost:9090/Service/GetTermInfoIndex</parameter>
> </operation>
> <operation name="GetIndexVersion">
> <parameter 
> name="wsamapping">http://localhost:9090/Service/GetIndexVersion</parameter>
> </operation>
> 
> By saying MTOM does not work I mean the situation when file is in whole 
> packed into xml.
> 
> Btw. I have axis2c in version 1.4

> Thanks a lot,
> Kuba
> 
> 
> 
> Manjula Peiris wrote:
> > In the server side you can do following,
> >
> > 1.Call axis2_msg_ctx_set_doing_mtom (msg_ctx, env, AXIS2_TRUE); from the
> > service code
> > 2. Adding the enableMTOM parameter in the services.xml
> > 2. Adding enableMTOM parameter in the axis2.xml - this will enable MTOM
> > globally.
> >
> > -Manjula.
> >
> >
> > On Fri, 2009-03-06 at 12:37 +0100, Kuba Tomiczek wrote:
> >   
> >> Hello
> >>
> >> What is the best way (if possible) of setting programatically 
> >> "enableMTOM" on axis2c Server Side, is it possible to modify options on 
> >> the server side?
> >> I found it could be done by:
> >>
> >> axis2_options_set_enable_mtom(options, env, AXIS2_TRUE);
> >>
> >> but when shall I set these options, so that they qould be available for 
> >> server?
> >> Should I create new "options" structure or rather get it from somewhere 
> >> in the server code?
> >>
> >> I have an axis2c server (1.4)  which has to handle
> >> a) requests from clients not supporting MTOM (Python ZSI)
> >> b) different MTOM requests from c client
> >> So I cannot set enabling MTOM in axis2.xml ...
> >>
> >> Thanks a lot
> >> Kuba
> >>     
> >
> >
> >   
> 


Mime
View raw message