Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 55975 invoked from network); 19 Oct 2007 08:25:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 08:25:48 -0000 Received: (qmail 3975 invoked by uid 500); 19 Oct 2007 08:25:29 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 3928 invoked by uid 500); 19 Oct 2007 08:25:29 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 3917 invoked by uid 99); 19 Oct 2007 08:25:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 01:25:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 08:25:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 225AE71423B for ; Fri, 19 Oct 2007 01:24:51 -0700 (PDT) Message-ID: <16320563.1192782291137.JavaMail.jira@brutus> Date: Fri, 19 Oct 2007 01:24:51 -0700 (PDT) From: "Amila Chinthaka Suriarachchi (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2914) ADB still not clever enough wrt Elements and ComplexTypes with the same name. In-Reply-To: <13155862.1183796944459.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amila Chinthaka Suriarachchi resolved AXIS2-2914. ------------------------------------------------- Resolution: Fixed ADB generates the complexType first. So I added the E suffix to the element name. > ADB still not clever enough wrt Elements and ComplexTypes with the same name. > ----------------------------------------------------------------------------- > > Key: AXIS2-2914 > URL: https://issues.apache.org/jira/browse/AXIS2-2914 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.2 > Reporter: Paul Fremantle > Assignee: Amila Chinthaka Suriarachchi > > Suppose I have this schema: > > ... > At the moment, ADB generates: > Paul->Paul53->children > In other words it generates a random number to separate the Element from the ComplexType. > Unfortunately, if you have two WSDLs that share the same schema, you can end up with different random numbers in each case, meaning that you can't actually share the objects. > Also, in 99% of cases, this will be the only use of a ComplexType - in fact the naming (Element name == complexType name) sort of implies that. > I recommend users edit the Schema to inline the complextype. So rewrite the schema like this: > > ... > > But of course usually this Schema is generated by .NET so we don't want to edit it. > Here is my suggestions: > 1) add a switch to automatically hide complextypes that have the same name as elements. (i.e. generate code the same as if the complextype was anonymous and inline) > 2) If the user hasn't specified the switch: when you come across a complexType name that is the same as an element name, name the java object PaulT. I don't see how the same name could appear a third time since that would be an error in the schema. -- 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org