Thank you, please read the comments below:
On 4/19/07, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
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].
Ok I will study this.
> options.set(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
As Valerie mentioned this should be setProperty...
Ok
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>
Yes I did it!
> Is this ok? Where should I store the "prova.txt" file in the server?
You can try giving an absolute path...
Ok
Please use the TCPMON[2] to capture your messages and check whether
the attachment is attached as a MIME part.....
Thanks,
Thilina
I have question about the WSDL for the MTOM-based service... For the
operation which has a parameter which is a binary file, which type
should I declare for the parameter? string?
In my enhanced StockQuoteservice.wsdl (which has a getPriceFile method
which receives a file name as input and returns a priceFile as
outpput), I wrote:
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://quickstart.samples/xsd">
<xs:element name="getPriceFile">
<xs:complexType>
<xs:sequence>
<xs:element name="priceFileName" nillable="true"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getPriceFileResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="priceFile" nillable="true"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
Is this correct?
Thank you very much
[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]
--
Michele Amoretti, Ph.D.
Distributed Systems Group
Dipartimento di Ingegneria dell'Informazione
Università degli Studi di Parma
http://www.ce.unipr.it/amoretti
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]