On Tuesday, August 16, 2011 11:28:43 PM robbywillz wrote:
> Hi,
> 
> Thanks a lot for providing different ways to enabling or disabling the MTOM.
> I could able to have a inline Base64Binary by disabling the MTOM and
> increasing the MTOM threshold(1024).
> I understood that MTOM will be enabled for attachment when threshold is
> crossed, even through MTOM is disabled. Please correct me if i'm wrong.
> 
> Is there any way to configure through spring client configuration? I don't
> want to make this changes in wsdl or in code as my code may run on Websphere
> v6.1 with web services feature pack installed.

If that's the case, I would actually suggest doing it in code, but with the 
standard JAX-WS API's.   That way, it should behave the same for any of the 
various JAX-WS providers.

When you create your client, pass in a javax.xml.ws.soap.MTOMFeature object 
that is configured to turn off MTOM or set the threshold.   All the 
createXXXPort methods have an optional set of features that can be passed in 
at create time.   Use those methods with the MTOMFeature and it should work 
for WebSphere as well.

Dan



> 
> I've tried with following configuration and I named file as cxf.xml, it is
> picked up by cxf but no effect on the configuration. It still converts to
> XOP. Please help me?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:jaxws="http://cxf.apache.org/jaxws";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="
>           http://www.springframework.org/schema/beans
>           http://www.springframework.org/schema/beans/spring-beans.xsd
>           http://cxf.apache.org/jaxws
>           http://cxf.apache.org/schemas/jaxws.xsd";>
> 
> 
>       <jaxws:client id="ne3sRegistration"
>               serviceClass="com.nsn.oss.ne3s.ws.gen.NE3SRegistrationPort"
> address="/NE3SRegistrationService">
>               <jaxws:properties>
>                       <entry key="mtom-enabled" value="false" />
>                       <entry key="mtom-threshold" value="1024" />
>               </jaxws:properties>
>       </jaxws:client>
> </beans>
> 
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to