I am getting the following error while converting WSDL to JAVA code for the
AXIS attachments sample examples. Please help.
java.io.IOException: Type {http://xml.apache.org/xml-soap}DataHandler is
referenced but not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:496)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:396
)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:382)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:367)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
at java.lang.Thread.run(Thread.java:536)
WSDD
-----
<!-- This file can be used to deploy the echoAttachments sample -->
<!-- using this command: java org.apache.axis.client.AdminClient
attachdeploy.wsdd -->
<!-- This deploys the echo attachment service. -->
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" >
<service name="EchoAttachmentsService" provider="java:RPC" >
<parameter name="className"
value="samples.attachments.EchoAttachmentsService"/>
<parameter name="allowedMethods" value="echo echoDir"/>
<operation name="echo" returnQName="returnqname"
returnType="ns1:DataHandler" >
<parameter name="dh" type="ns1:DataHandler"/>
</operation>
<typeMapping
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
"
languageSpecificType="java:javax.activation.DataHandler"
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
</service>
</deployment>