How to define the type "ns1:DataHandler"?
axis WSDL2java 报错:DataHandler is referenced but not defined. 该webService直接用Call写客户端正常,用上面的生成客户端工具报错.
发布前wsdd文件:
<deployment xmlns="http://xml.
xmlns:java="http://xml.
xmlns:ns1="http://127.0.0.1/wss/services/FileService"
>
<service name="urn:FileService" provider="java:RPC">
<namespace> http://xml. </namespace> //此处,是参考网络上对于这个问题的解决意见,经实验,无效!
<parameter name="className" value="org.wss.webservice.services.FileService"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="allowedRoles" value="user"/>
<operation name="getFile" returnQName="returnqname" returnType="ns1:DataHandler"
xmlns:SchemaNS="http://www.
<parameter name="name" type="SchemaNS:string"/>
</operation>
<typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
type="java:javax.activation.DataHandler" qname="ns1:DataHandler"
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
encodingStyle="http://schemas.
</service>
</deployment>
[[it] 本帖最后由 kingyor 于 2008-2-26 09:46 编辑 [/it]]