axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsi Krishna Bhagi (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Created] (AXIS-2927) Axis 1.4 generated stubs are not having variables to store value
Date Sun, 18 Nov 2018 06:04:00 GMT
Vamsi Krishna Bhagi created AXIS-2927:
-----------------------------------------

             Summary: Axis 1.4 generated stubs are not having variables to store value
                 Key: AXIS-2927
                 URL: https://issues.apache.org/jira/browse/AXIS-2927
             Project: Axis
          Issue Type: Bug
          Components: Serialization/Deserialization, WSDL processing
    Affects Versions: 1.4
         Environment: Tomcat 8.5.32 running on Linux. JAX RPC service.
            Reporter: Vamsi Krishna Bhagi
             Fix For: 1.2.1
         Attachments: DateTime1(AXIS 1.2.1).zip, DateTime1(Axis 1.4).zip

Following is the wsdl snippet,
{code:java}
<xs:complexType name="DateTime1">
                <xs:annotation>
                    <xs:documentation>
Primitive: Date Time: Specifies a date and/or time Date Time_1: Date and/or Time.
        </xs:documentation>
                </xs:annotation>
                <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}
Corresponding stub generated using Axis 1.4 is as follows,(snippet)
{code:java}
public class DateTime1  implements java.io.Serializable, org.apache.axis.encoding.SimpleType
{
    private java.lang.String formatText;  // attribute

    public DateTime1() {
    }

    // Simple Types must have a String constructor
    public DateTime1(java.util.Calendar _value) {
        super(_value);
    }{code}
_value is not present in the DateTime1.java which is present in axis 1.2 stub. DateTime1_Content.java
is not generated as it is a simpleType. 

Axis 1.2 Stub
{code:java}
public class DateTime1  implements java.io.Serializable, org.apache.axis.encoding.SimpleType
{
    private java.util.Calendar _value;
    private java.lang.String formatText;  // attribute

    public DateTime1() {
    }

    // Simple Types must have a String constructor
    public DateTime1(java.util.Calendar _value) {
        this._value = _value;
    }
    public DateTime1(java.lang.String _value) {
        java.util.Calendar cal =
            (java.util.Calendar) new org.apache.axis.encoding.ser.CalendarDeserializer(
                java.lang.String.class, org.apache.axis.Constants.XSD_STRING).makeValue(_value);
        this._value = cal;
    }{code}
How to access DateTime1 in code if there is no placeholder for it's value?



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

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


Mime
View raw message