Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2928

Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by SimpleDeserializer

    XMLWordPrintableJSON

Details

    Description

      In Axis, dateTIme type element is mapped to a java.util.Calendar type and is using SimpleSerializer and DeSerializer.

      While deserializing the request XML, SimpleDerializer is expecting a string constructor to store the Calendar value which, axis 1.4 is not generating for the class which holds java.util.Calendar type. Axis 1.2.1 is generating this and it is working properly.

      WSDLsnippet :

      <xs:complexType name="DateTime1">
                      <xs:simpleContent>
                          <xs:extension base="tns:DateTime1_Content">
                              <xs:attribute name="FormatText" type="tns:DateTime1_FormatText"/>
                          </xs:extension>
                      </xs:simpleContent>
                  </xs:complexType>
                  <xs:simpleType name="DateTime1_Content">
                      <xs:restriction base="xs:dateTime"/>
                  </xs:simpleType>
                  <xs:simpleType name="DateTime1_FormatText">
                      <xs:restriction base="xs:string"/>
                  </xs:simpleType>

      WSDD entry:

       

       <typeMapping
              xmlns:ns="http://www.iicmva.com/CoverageVerification/"
              qname="ns:DateTime1_Content"
              type="java:java.util.Calendar"
              serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
              deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
              encodingStyle=""
            /> 
      

       

      Attaching both 1.4 and 1.2.1 generated stubs.

      Attachments

        1. DateTime1(AXIS 1.2.1).zip
          1 kB
          Vamsi Krishna Bhagi
        2. DateTime1(Axis 1.4).zip
          1 kB
          Vamsi Krishna Bhagi

        Activity

          People

            Unassigned Unassigned
            VamsiBhagi Vamsi Krishna Bhagi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: