Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB975F99C for ; Tue, 23 Apr 2013 19:59:18 +0000 (UTC) Received: (qmail 88036 invoked by uid 500); 23 Apr 2013 19:59:16 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 87999 invoked by uid 500); 23 Apr 2013 19:59:16 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 87837 invoked by uid 99); 23 Apr 2013 19:59:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 19:59:16 +0000 Date: Tue, 23 Apr 2013 19:59:16 +0000 (UTC) From: "Stephen Muccione (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-4981) wsdl2js failes to generate deserializer for nested complex sequences, but calles the deserialize in the outer type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Stephen Muccione created CXF-4981: ------------------------------------- Summary: wsdl2js failes to generate deserializer for nested complex sequences, but calles the deserialize in the outer type Key: CXF-4981 URL: https://issues.apache.org/jira/browse/CXF-4981 Project: CXF Issue Type: Bug Components: JavaScript Client Affects Versions: 2.7.4 Environment: windows, 2.7.4 released binaries Reporter: Stephen Muccione When createing a js client where the wsdl has nested complex types, the client code calls a deserializer that is never emitted (the call looks appropriate) The wsdl in question is: and the emitted code is: cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing stabilityImpact'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { item = XSDI_stabilityImpact_deserialize(cxfjsutils, curElement); } newobject.setStabilityImpact(item); where XSDI_stabilityImpact_deserialize is never emitted: of note, this function naming may well be inappropriate. I have multiple top-level types declared with the same element name (stabilityImpact) as part of a sequence. If a top-level deserializer is emitted, they would have identical names for their embedded element deserializers. A more appropriate name would be: XSDI_continuousNBData_stabilityImpact_deserialize should probably chain the element names up the stack until you reach root-level in order to guarantee uniqueness of names (either that or some other obfuscation mechanism to guarantee uniqueness) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira