You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aga <dr...@student.uci.agh.edu.pl> on 2003/10/23 16:35:31 UTC

No serializer found

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