Announcement Announcement Module
No announcement yet.
Enabling MTOM for JAX-WS proxy JaxWsPortProxyFactoryBean Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enabling MTOM for JAX-WS proxy JaxWsPortProxyFactoryBean

    Hi, i want to enable MTOM in my spring generated proxy via JaxWsPortProxyFactoryBean. I am using org.springframework.web-3.1.1.

    I have the following configuration:

    <bean id="servicePort" class="org.springframework.remoting.jaxws.JaxWsPor tProxyFactoryBean">
    <property name="wsdlDocumentUrl" value="${url}?WSDL"/>
    <property name="lookupServiceOnStartup" value="false"/>
    <property name="endpointAddress" value="${url}"/>
    <property name="username" value="${username}"/>
    <property name="password" value="${password}"/>
    <property name="handlerResolver" ref="myServiceHandlerResolver"/>
    <property name="customProperties">
    <ref local="jaxwsCustomProperties"/>

    <util:map id="jaxwsCustomProperties">
    <entry key="mtom-enabled" value="true"/>

    The service works, but attachments are being sent in Base64. I think configuration is ok. Can anyone help me with this issue?