I'm new to Axis2 and I'm trying to implement a file up- and download
mechanism via Webservice. I created a simple POJO Webservice
FileTransferService with the methods:
- uploadFiles(FileWrapper) and
- FileWrapper downloadFile()
The FileWrapper class is a simple bean with:
- setDataHandlers(DataHandler[]) and
DataHandler[] getDataHandlers(). My problem is now that when I am using
the Java2WSDL Ant-Task I am getting a WSDL with a FileWrapper where the
dataHandler attribute type is xs:anyType.
<xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://service.example/xsd">
<xs:complexType name="FileWrapper">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="dataHandler" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
I thaught that would generate an attributeType base64Binary. When I am
using the DataHandler in the Service directly without a FileWrapper
class it works fine but when I am using a bean class to encapsulate the
DataHandler it don't work.
Regards,
Lasse
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]