[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    [jira] Updated: (AXIS2-4356) WSDL2Java doesn't support
From:       "Eric Veilleux (JIRA)" <jira () apache ! org>
Date:       2010-05-29 20:21:40
Message-ID: 23086860.67511275164500386.JavaMail.jira () thor
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/AXIS2-4356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Eric Veilleux updated AXIS2-4356:
---------------------------------

    Attachment: axis2-adb-codegen-1.4.1.jar
                SchemaCompiler.java

> WSDL2Java doesn't support xsd:element@fixed
> -------------------------------------------
> 
> Key: AXIS2-4356
> URL: https://issues.apache.org/jira/browse/AXIS2-4356
> Project: Axis2
> Issue Type: Improvement
> Components: adb, codegen, wsdl
> Affects Versions: 1.4.1
> Environment: Java 6
> Reporter: Aaron Gourley
> Priority: Minor
> Attachments: axis2-adb-codegen-1.4.1.jar, SchemaCompiler.java
> 
> 
> For reference, the default and fixed constraints are defined here:
> http://www.w3.org/TR/xmlschema-1/#e-value_constraint
> Consider the following XML schema definitions:
> <xs:element name="ResultCode" type="tns:ResultCode" />
> <xs:complexType name="ResultCode">
> <xs:sequence>
> <xs:element name="code" default="0" type="xs:long" />
> </xs:sequence>
> </xs:complexType>
> <xs:element name="SuccessCode" type="tns:SuccessCode" />
> <xs:complexType name="SuccessCode">
> <xs:sequence>
> <xs:element name="code" fixed="0" type="xs:long" />
> </xs:sequence>
> </xs:complexType>
> ADB code generated for the ResultCode element is correct in setting the default \
> value of the code field to 0: protected long localCode = \
> org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); ADB code \
> generated for the SuccessCode element is incorrect according to XSD definition for \
> the fixed element.  It actually appears to completely ignore the fixed attribute.  \
> Considering the XSD definition for the fixed attribute, I think the generated code \
> should declare the code field as final and set the final value as follows: \
> protected final long localCode = \
> org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); It follows \
> that the generated code should not contain a setter method for the code field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
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