1 Reply Latest reply on Sep 17, 2002 2:49 PM by gerwec

    Should I implement an own serializer/deserializer for a comp

    lexa

      I have got the following :

      public interface ValueObject extends Serializable {
      ...
      public HashMap getValues();
      ...
      }

      public class UserManagerBean implements SessionBean {
      public ValueObject getUser(Long userId) throws ..
      }

      Should I write an own serializer/desirializer?
      It seems I can use the standard Axis's serializers.

      I've seen http://www.csd.abdn.ac.uk/~bscharla/jboss-net-helloWorld.html ,but only simple arguments are used in this example.
      Also I'd like to know when I should create a wsdl file.
      Or is it unnecessary in Axis?

      Thanks in advance,
      Alexey

        • 1. Re: Should I implement an own serializer/deserializer for a
          gerwec

          Try to use BeanSerializer/BeanDeserializer.
          just add the following lines to your web-service.xml:



          ....

          <beanMapping qname="RequestHandlerNS:ComplexData"
          xmlns:RequestHandlerNS="RequestHandler"
          languageSpecificType="java:com.common.ComplexData"/>


          the data type just must use the bean style(get,set,etc.)
          axis does all the other things for you,...

          c.u.
          gernot