[prev in list] [next in list] [prev in thread] [next in thread]
List: rampart-dev
Subject: [jira] [Created] (AXIS-2927) Axis 1.4 generated stubs are not having variables to store value
From: "Vamsi Krishna Bhagi (JIRA)" <axis-dev () ws ! apache ! org>
Date: 2018-11-18 6:04:00
Message-ID: JIRA.13199141.1542520987000.374097.1542521040027 () Atlassian ! JIRA
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic