2 Replies Latest reply on Aug 1, 2006 10:37 AM by thomas.diesler

    Pluggable serializers/deserializers

    stepan1117

      Hi all,
      it is possible to use custom (or pluggable) de/serializers for my own non-trivial datatypes? All I want is to serialize a class to the array of bytes and send it using webservice. I know, that Axis/Axis2 have this possibility, but I have not discovered yet, how to achieve this in JbossWS.
      Thanks and cheers,
      Stepan

        • 1. Re: Pluggable serializers/deserializers
          stepan1117

          I've found something interesting here - when running wstools (JavaToWSDL), I can see occurences of this debug message:

          [TypeMappingImpl] register: TypeMappingImpl@3307594 [xmlType={http://com.test/testtool}UserSer,javaType=com.test.testtool.ser.UserSer,sf=null,df=null]

          I presume, that the "sf" and "df" have something to do with the serializer factory and deserializer factory. But I still have not found a way, how to set them...
          Cheers, Stepan

          • 2. Re: Pluggable serializers/deserializers
            thomas.diesler

            This cannot be done declaratively. You would have to use the jboss propriatary API to do this.

            BTW, this is by design because jbossws is about portable WS4EE endpoints/clients.