I ran sample code from http://ws.apache.org/axis2/1_1/mtom-guide.html#252
but a soap message sent to server was as following:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
     <soapenv:Header />
     <soapenv:Body>
        <sendData xmlns="http://myMtomNS/types";>
           <MyBinaryData>dGVzdG93eSB0ZWtzdA==</MyBinaryData>
        </sendData>
     </soapenv:Body>
  </soapenv:Envelope

I tried to enable MTOM optimization at client side:

stub._getServiceClient().getOptions().setProperty(
Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);

but it didnt help.
Sample with ADB databinding works fine (instead of binary data there is <xop:Include> reference to mime attachment)

Has the MTOM/XMLBeans databinding already been implemented (jira: AXIS2-1031)?

Thanks,
Mariusz Woloncewicz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to