You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Bromberg, Dirk - encoway" <Br...@encoway.de> on 2008/10/09 10:59:09 UTC
Setting MTOM= true with JaxWsProxyFactoryBean / Spring
Hi,
For the WS client i use spring shown in the sample. The myServiceClient
bean is used in another bean..
How can I set
<jaxws:properties>
<entry key="mtom-enabled" value="true"/>
</jaxws:properties>
here?
----SAMPLE-----
<bean id="myServiceClient"
class="com.encoway.appbase.impl.catalogue.sync.CatalogueSyncWebService"
factory-bean=" myServiceClientFacotry" factory-method="create">
</bean>
<bean id=" myServiceClientFacotry "
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="com.MyServiceInterface" />
<property name="address" value="${myWebServiceAddress}" />
</bean>
----SAMPLE-----
Thanks!
Dirk
AW: Setting MTOM= true with JaxWsProxyFactoryBean / Spring
Posted by "Bromberg, Dirk - encoway" <Br...@encoway.de>.
Yes this works fine. Thanks!
> -----Ursprüngliche Nachricht-----
> Von: Daniel Kulp [mailto:dkulp@apache.org]
> Gesendet: Donnerstag, 9. Oktober 2008 20:47
> An: users@cxf.apache.org
> Cc: Bromberg, Dirk - encoway
> Betreff: Re: Setting MTOM= true with JaxWsProxyFactoryBean / Spring
>
>
>
>
> I THINK you can just do:
>
> <bean id=" myServiceClientFacotry "
> class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
> <property name="serviceClass" value="com.MyServiceInterface" />
> <property name="address" value="${myWebServiceAddress}" />
> <property name="properties>
> <map>
> <entry key="mtom-enabled" value="true">
> </map>
> </property>
> </bean>
> or similar.
>
> Dan
>
>
> On Thursday 09 October 2008 4:59:09 am Bromberg, Dirk - encoway wrote:
> > Hi,
> >
> > For the WS client i use spring shown in the sample. The myServiceClient
> > bean is used in another bean..
> >
> > How can I set
> > <jaxws:properties>
> > <entry key="mtom-enabled" value="true"/>
> > </jaxws:properties>
> > here?
> >
> > ----SAMPLE-----
> > <bean id="myServiceClient"
> >
> > class="com.encoway.appbase.impl.catalogue.sync.CatalogueSyncWebService"
> > factory-bean=" myServiceClientFacotry" factory-method="create">
> > </bean>
> >
> > <bean id=" myServiceClientFacotry "
> > class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
> > <property name="serviceClass" value="com.MyServiceInterface" />
> > <property name="address" value="${myWebServiceAddress}" />
> > </bean>
> > ----SAMPLE-----
> >
> >
> > Thanks!
> >
> > Dirk
>
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
Re: Setting MTOM= true with JaxWsProxyFactoryBean / Spring
Posted by Daniel Kulp <dk...@apache.org>.
I THINK you can just do:
<bean id=" myServiceClientFacotry "
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="com.MyServiceInterface" />
<property name="address" value="${myWebServiceAddress}" />
<property name="properties>
<map>
<entry key="mtom-enabled" value="true">
</map>
</property>
</bean>
or similar.
Dan
On Thursday 09 October 2008 4:59:09 am Bromberg, Dirk - encoway wrote:
> Hi,
>
> For the WS client i use spring shown in the sample. The myServiceClient
> bean is used in another bean..
>
> How can I set
> <jaxws:properties>
> <entry key="mtom-enabled" value="true"/>
> </jaxws:properties>
> here?
>
> ----SAMPLE-----
> <bean id="myServiceClient"
>
> class="com.encoway.appbase.impl.catalogue.sync.CatalogueSyncWebService"
> factory-bean=" myServiceClientFacotry" factory-method="create">
> </bean>
>
> <bean id=" myServiceClientFacotry "
> class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
> <property name="serviceClass" value="com.MyServiceInterface" />
> <property name="address" value="${myWebServiceAddress}" />
> </bean>
> ----SAMPLE-----
>
>
> Thanks!
>
> Dirk
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog