> public interface ServiceInreface {
>
> String echoText(String name);
Change the above as follows..
String echoText(String name, DataHandler fileData
thanks,
Thilina
>
> }
>
>
>
> My question is: how can I inform the <Java2wsld> ant task that the string
> request parameter to my web service operation expects a MTOM attachment
> inside it. Thus the WSDL generated should have an entry like this
>
> <wsdl:types>
>
> <xs:schema attributeFormDefault="qualified"
> xmlns:xs=http://www.w3.org/2001/XMLSchema ………………>
>
> <xs:import
> namespace="http://www.w3.org/2005/05/xmlmime"
> schemaLocation="xsd0.xsd"/> <!—This I have taken from MTOM sample folderà
>
> <xs:element name="echoText">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true"
> type="xs:string"/>
>
> <xs:element minOccurs="0" name="binaryData"
> type="xmime:base64Binary"/>
>
> </xs:sequence>
>
> ………………………………
>
>
>
> Instead of
>
>
>
> <wsdl:types>
>
> <xs:schema attributeFormDefault="qualified"
> xmlns:xs=http://www.w3.org/2001/XMLSchema …. ….. …. … … … …
> … … ..>
>
> <xs:import
> namespace="http://www.w3.org/2005/05/xmlmime"
> schemaLocation="xsd0.xsd"/>
>
> <xs:element name="echoText">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true"
> type="xs:string"/>
>
> </xs:sequence>
>
> ………………………………
>
>
>
> Please help me to understand this.
>
>
>
> Thanks and Regards,
>
>
>
> Ashish
>
>
>
>
>
>
>
>
--
Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]