Discussion:
[jira] [Created] (AXIS-2928) Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by
Vamsi Krishna Bhagi (JIRA)
2018-11-18 06:35:00 UTC
Permalink
Vamsi Krishna Bhagi created AXIS-2928:
-----------------------------------------

Summary: Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by
Key: AXIS-2928
URL: https://issues.apache.org/jira/browse/AXIS-2928
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Reporter: Vamsi Krishna Bhagi
Fix For: 1.2.1
Attachments: DateTime1(AXIS 1.2.1).zip, DateTime1(Axis 1.4).zip

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 :
{code:java}
<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>{code}
Attaching both 1.4 and 1.2.1 generated stubs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-***@axis.apache.org
For additional commands, e-mail: java-dev-***@axis.apache.org
Vamsi Krishna Bhagi (JIRA)
2018-11-18 06:36:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/AXIS-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsi Krishna Bhagi updated AXIS-2928:
--------------------------------------
Summary: Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by SimpleDeserializer (was: Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by )
Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by SimpleDeserializer
------------------------------------------------------------------------------------------------------------------------------
Key: AXIS-2928
URL: https://issues.apache.org/jira/browse/AXIS-2928
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Reporter: Vamsi Krishna Bhagi
Priority: Major
Fix For: 1.2.1
Attachments: DateTime1(AXIS 1.2.1).zip, DateTime1(Axis 1.4).zip
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.
{code:java}
<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>{code}
Attaching both 1.4 and 1.2.1 generated stubs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-***@axis.apache.org
For additional commands, e-mail: java-dev-***@axis.apache.org
Vamsi Krishna Bhagi (JIRA)
2018-11-18 06:37:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/AXIS-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsi Krishna Bhagi updated AXIS-2928:
--------------------------------------
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 :
{code:java}
<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>{code}
WSDD entry:

 
{code:java}
 <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=""
      />
{code}
 

Attaching both 1.4 and 1.2.1 generated stubs.

was:
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 :
{code:java}
<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>{code}
Attaching both 1.4 and 1.2.1 generated stubs.
Post by Vamsi Krishna Bhagi (JIRA)
Axis 1.4 generated stub is not having String constructor for a java.util.Calendar type which is expected by SimpleDeserializer
------------------------------------------------------------------------------------------------------------------------------
Key: AXIS-2928
URL: https://issues.apache.org/jira/browse/AXIS-2928
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Reporter: Vamsi Krishna Bhagi
Priority: Major
Fix For: 1.2.1
Attachments: DateTime1(AXIS 1.2.1).zip, DateTime1(Axis 1.4).zip
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.
{code:java}
<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>{code}
 
{code:java}
 <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=""
      />
{code}
 
Attaching both 1.4 and 1.2.1 generated stubs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-***@axis.apache.org
For additional commands, e-mail: java-dev-***@axis.apache.org

Loading...