You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sudhir <su...@infolead.com> on 2002/06/13 02:23:10 UTC

Registering the serializer/deserializer!

Is this the right way to register a serializer and a deserializer?

Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
Service  service = new Service();
call = (Call) service.createCall();
javax.xml.rpc.namespace.QName qName;
qName = new javax.xml.rpc.namespace.QName("http://tempuri.org/", "TAnyWhoInfo");
call.registerTypeMapping(TAnyWhoInfo.class, qName, beansf, beandf, false);

But I am gettint the following exception.
org.xml.sax.SAXException: Bad types (null -> class TAnyWhoInfo)
        at org.apache.axis.message.RPCHandler.onStartChild(RPCHandle
r.java:205)
        at org.apache.axis.encoding.DeserializationContextImpl.start
Element(DeserializationContextImpl.java:831)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2Even

What could be the reason?

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
Integrity without knowledge is weak and useless, and knowledge without integrity is dangerous and dreadful.