users@jax-rpc.java.net

xrpcc requires SerializationFactory and Serializer

From: Hrishikesh Bhagwat <Hrishikesh.Bhagwat_at_XORIANT.COM>
Date: Mon, 13 May 2002 18:18:02 +0530

hi,

The <typeMappingRegistry> tag in the config.xml file for the
of the xrpcc tool looks like this :

(when starting from Service Defn Interface)

   <typeMappingRegistry>
    <typeMapping
              encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
               <entry schemaType="ns1:Address"
                  javaType="edu.desi.Address"
                  serializerFactory=
                    "edu.desi.AddressSerFactory"
                   deserializerFactory=
                    "edu.desi.AddressDeserFactory"
                   xmlns:ns1="http://edu.desi/type"/>
    </typeMapping>
   </typeMappingRegistry>

thus it requires the developer to provide it
with the name of the Factory class and not the
Serializer class. Does that mean that any one who
want to plug in his/her serializers will have to
code a factory class in addition to the Serilizers
and deserializers and then return their instances
as return types of appropriate methods calls in
the Factory class ?

Further if the above is the case : The return
type of method SerializerFactory.getSerializerAs(...) is
"javax.xml.rpc.encoding."Serializer ... does that
mean that any Serilizer that just implements methods
in that interface will work with the Sun-RI.

thx,
Hrishikesh