Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 17191 invoked from network); 11 Dec 2007 17:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2007 17:47:04 -0000 Received: (qmail 20729 invoked by uid 500); 11 Dec 2007 17:46:52 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 20711 invoked by uid 500); 11 Dec 2007 17:46:52 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 20700 invoked by uid 99); 11 Dec 2007 17:46:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 09:46:52 -0800 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; Tue, 11 Dec 2007 17:46:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 27D81714211 for ; Tue, 11 Dec 2007 09:46:43 -0800 (PST) Message-ID: <16935112.1197395203160.JavaMail.jira@brutus> Date: Tue, 11 Dec 2007 09:46:43 -0800 (PST) From: "Dimuthu Gamage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXIS2C-826) Generated deserialize method does not handle a nested in a In-Reply-To: <26272010.1197324703263.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/AXIS2C-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550656 ] Dimuthu Gamage commented on AXIS2C-826: --------------------------------------- Currently C templates doesn't support complexType choice. It only supports sequence and all (And only well testsed in sequence). > Generated deserialize method does not handle a nested in a > ------------------------------------------------------------------------------ > > Key: AXIS2C-826 > URL: https://issues.apache.org/jira/browse/AXIS2C-826 > Project: Axis2-C > Issue Type: Bug > Components: code generation > Reporter: Michael Mole > > I have a schema with a complex type as follows: > > > > > > > > > > > > > > > > The generated deserialize method looks like this (this is a snippet): > /* > * because elements are not ordered we should surf all the sibling to pick the right one > */ > for (current_node = first_node; current_node != NULL; > current_node = axiom_node_get_next_sibling(current_node, env)) > { > current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env); > qname = axiom_element_get_qname(current_element, env, current_node); > > element_qname = axutil_qname_create(env, "FooResponseSequence_type0", "http://ibm.com/ws", NULL); > if (axutil_qname_equals(element_qname, env, qname)) > { > /* found the requried element */ > break; > } > } > The generated code is looking for the a qname containing "FooResponseSequence_type0" which is the generated name for the adb sequence struct. It should not be looking for this though. It should actually be looking for the first element in the sequence, "changed-value". > Admittedly, I don't know exactly how this should be formed, but I printed up the value of qname and it looks like this: changed-value|http://ibm.com/ws|WSX > Please let me know if further explanation is needed, and I'll try to supply more. -- 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-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org