axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aga" <druz...@student.uci.agh.edu.pl>
Subject No serializer found
Date Thu, 23 Oct 2003 14:35:31 GMT
Hi  
I'm new in web services .
I have simple class Data1, and to this class: DataSerializer, DataSerFactory..
server.wsdl :
 <service name="urn:Service" provider="java:RPC">
   <parameter name="className" value="Server" /> 
  <parameter name="allowMethods" value="getData1" /> 
 <typeMapping xmlns:ns1="urn:AdventNetSoapAgentTypes"
  qname="ns1:org.apache.axis.Data1"
  type="java:org.apache.axis.Data1"
  serializer="org.apache.axis.DataSerFactory"
  deserializer="org.apache.axis.DataDeserFactory"
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
 </service>

Method : getData1 return object from class Data1
In client class I add:
        call.setReturnType(qnResponse);
        call.setReturnClass(org.apache.axis.Data1.class);
        call.setReturnQName(qnResponse);
        call.registerTypeMapping(org.apache.axis.Data1.class,qnResponse,org.apache.axis.DataSerFactory.class,org.apache.axis.DataDeserFactory.class);

but it still an error :
Remote Exception: java.io.IOException: No serializer found for class Data1 in registry org.apache.axis.encoding.TypeMappingImpl@23f1bb

what I do wrong? 
what I can check?

agnieszka

Mime
View raw message