Hi,
In the MTOM tutorial unfortunately there are only parts of code (I cannot find a complete example in axis2-1.1.1 - the mtom sample is not based on AXIOM)
You can find a rather complicated deprecated MTOM Sample based on Axiom in here[1].
options.set(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
As Valerie mentioned this should be setProperty...
But AFAIKS you are trying to return an attachment from a server.. For that you need to enable MTOM in the server side by adding the following parameter to your axis2.xml or to the service.xml.. <parameter name="enableMTOM" locked="false">true</parameter>
Is this ok? Where should I store the "prova.txt" file in the server?
You can try giving an absolute path... Please use the TCPMON[2] to capture your messages and check whether the attachment is attached as a MIME part..... Thanks, Thilina [1]http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/deprecated/mtomsample/ [2]ws.apache.org/commons/tcpmon -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
