Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 47411 invoked from network); 22 Mar 2004 11:56:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Mar 2004 11:56:37 -0000 Received: (qmail 96546 invoked by uid 500); 22 Mar 2004 11:56:26 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 96497 invoked by uid 500); 22 Mar 2004 11:56:25 -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: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 96346 invoked from network); 22 Mar 2004 11:56:24 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 22 Mar 2004 11:56:24 -0000 Received: (qmail 4925 invoked from network); 22 Mar 2004 11:56:58 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 22 Mar 2004 11:56:58 -0000 Message-ID: <312554418.1079956618513.JavaMail.apache@nagoya> Date: Mon, 22 Mar 2004 03:56:58 -0800 (PST) From: jira@apache.org To: axis-dev@ws.apache.org Subject: [jira] Assigned: (AXIS-666) The WSDL2Java generates incorrect type metadata for sequences containing arrays of sequences, thus preventing correct deserialization Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: The following issue has been re-assigned. Assignee: Glen Daniels (mailto:gdaniels@apache.org) Assigner: Davanum Srinivas (mailto:dims@yahoo.com) Date: Mon, 22 Mar 2004 3:55 AM Comment: Glen, Can you please comment on this bug? thanks, dims --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-666 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXIS-666 Summary: The WSDL2Java generates incorrect type metadata for sequences containing arrays of sequences, thus preventing correct deserialization Type: Bug Status: Reopened Project: Axis Components: WSDL processing Versions: 1.1 Assignee: Glen Daniels Reporter: Navneet Joneja Created: Wed, 12 Feb 2003 6:38 PM Updated: Mon, 22 Mar 2004 3:55 AM Environment: Operating System: All Platform: All Description: When a WSDL describes an element as a sequence of array of sequence, (ie a bean with a member property which is an array of beans), the type metadata that is generated incorrectly identifies the property. E.g. if we had class Moo { public Cow[] getBovines() } the type metadata give the XML type as Cow instead of ArrayOfCow. The bug can be fixed by changing line 279 in JavaBeanHelperWriter. Reproduced in context below: (lines 274-283) // Some special handling for arrays TypeEntry elemType = elem.getType(); while (elemType.getRefType() != null) { elemType = elemType.getRefType(); } QName xmlType = elemType.getQName(); // <======= changeme if (xmlType != null && xmlType.getLocalPart().indexOf("[") > 0) { // Skip array types, because they are special xmlType = null; } the line flagged with the // <======= changeme QName xmlType = elemType.getQName(); // <======= changeme should be changed to: QName xmlType=elem.getType().getQName(); - Navneet --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira