Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0500E195A1 for ; Tue, 22 Mar 2016 18:13:28 +0000 (UTC) Received: (qmail 10308 invoked by uid 500); 22 Mar 2016 18:13:26 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 9747 invoked by uid 500); 22 Mar 2016 18:13:26 -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 9397 invoked by uid 99); 22 Mar 2016 18:13:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 18:13:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D9EA12C1F60 for ; Tue, 22 Mar 2016 18:13:25 +0000 (UTC) Date: Tue, 22 Mar 2016 18:13:25 +0000 (UTC) From: "Andreas Veithen (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5750) Fixed value causes Exception for non fixed values in ADB generated code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15206937#comment-15206937 ] Andreas Veithen commented on AXIS2-5750: ---------------------------------------- There are a couple of files missing from the patch, including the WSDL, the XSLT and the unit test class. > Fixed value causes Exception for non fixed values in ADB generated code > ----------------------------------------------------------------------- > > Key: AXIS2-5750 > URL: https://issues.apache.org/jira/browse/AXIS2-5750 > Project: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.6.4, 1.7.1 > Reporter: Frederik Hansen > Attachments: FixedValueSample.wsdl, fixedAttribute.patch, fixedValue.patch > > > I'm using Axis 1.7.1 and found an issue using fixed values in WDSL and the ADB Codegenerator. > Basically when one fixed value/attribute exists, all attributes are treated as fixed attributes. This means, when setting the value on a non-fixed attribute, it set be seen as null (but set) and causing an exception. > I've attached a simplified WSDL. > I've looked in the ADB Codegen code, and IMHO the issue seems to be in SchemaCompiler where the code says: > // register the fixed value if present > if (xsElt.getFixedValue() != null) { > metainf.registerDefaultValue(xsElt.getQName(), xsElt.getFixedValue()); > metainf.setFixed(true); > } > The setFixed seems to be too broad, and maybe it can be changed into something following the registerNillableQName-flow, e.g. registerFixedQName(xsElt.getQName()). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org