If I have mtom-enabled set to true and I am using aegis bindings why is my
wsdl complex type being generated like this?

<element name="imageData" type="base64Binary"/>

Instead of like this

<element name="imageData" type="base64Binary"
xmime:expectedContentType="application/octet-stream"/>

I think have my aegis config file correct

<property name="imageData"  nillable="false"
expectedContentTypes="application/octet-stream"

My imageData is one of type     private javax.activation.DataHandlerimageData;

Hers is my cxf.xml file

<jaxws:endpoint id="CollectiveServices" implementor="#serviceBean"
address="/CollectiveServices" >
        <jaxws:serviceFactory>
            <bean class="
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
                <property name="dataBinding" ref="aegisBinding"/>
                <property name="serviceConfigurations">
                    <list>
                        <ref bean="jaxConfig"/>
                        <ref bean="aegisConfig"/>
                        <ref bean="defaultConfig"/>
                    </list>
                </property>
            </bean>
        </jaxws:serviceFactory>
        <jaxws:properties>
            <entry key="mtom-enabled" value="true"/>
        </jaxws:properties>
        <jaxws:features>
            <bean class="org.apache.cxf.feature.LoggingFeature"/>
        </jaxws:features>
    </jaxws:endpoint>
Perhaps I should just switch to jaxb?
Dave Kallstrom

Reply via email to