Return-Path: Delivered-To: apmail-ws-kandula-dev-archive@www.apache.org Received: (qmail 51651 invoked from network); 29 May 2010 20:22:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 May 2010 20:22:04 -0000 Received: (qmail 52877 invoked by uid 500); 29 May 2010 20:22:03 -0000 Delivered-To: apmail-ws-kandula-dev-archive@ws.apache.org Received: (qmail 52520 invoked by uid 500); 29 May 2010 20:22:03 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 52511 invoked by uid 99); 29 May 2010 20:22:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 20:22:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 20:22:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4TKLdK1020502 for ; Sat, 29 May 2010 20:21:39 GMT Message-ID: <29857546.67431275164499055.JavaMail.jira@thor> Date: Sat, 29 May 2010 16:21:39 -0400 (EDT) From: "Eric Veilleux (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Updated: (AXIS2-4356) WSDL2Java doesn't support xsd:element@fixed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Veilleux updated AXIS2-4356: --------------------------------- Attachment: (was: axis2-adb-codegen-1.4.1.jar) > 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: > > > > > > > > > > > > > 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