Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 89937 invoked from network); 6 May 2010 16:55:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 16:55:11 -0000 Received: (qmail 88723 invoked by uid 500); 6 May 2010 16:55:10 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 88364 invoked by uid 500); 6 May 2010 16:55:10 -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 88356 invoked by uid 99); 6 May 2010 16:55:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 16:55:10 +0000 X-ASF-Spam-Status: No, hits=-1473.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 16:55:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o46Gsms9015249 for ; Thu, 6 May 2010 16:54:48 GMT Message-ID: <4608272.13851273164888621.JavaMail.jira@thor> Date: Thu, 6 May 2010 12:54:48 -0400 (EDT) From: "Rui Li (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Created: (AXIS-2829) Java2WSDL publish array holder parameter as as a non-array type. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Java2WSDL publish array holder parameter as as a non-array type. ----------------------------------------------------------------- Key: AXIS-2829 URL: https://issues.apache.org/jira/browse/AXIS-2829 Project: Axis Issue Type: Bug Components: WSDL processing Affects Versions: 1.4 Reporter: Rui Li Priority: Minor Java2WSDL generate WSDL for java class using array-holder is missing the maxOccurs attribute for Document/literal and Wrapped style. But there is no error for RPC/Encoding style. Steps: 1) Create a Array holder class like fallow: public class IntArrayHolder implements javax.xml.rpc.holders.Holder { public int[] value; public IntArrayHolder(){} public IntArrayHolder(int[] value){ this.value = value;} } 2) Create Java Class that use the holder as parameter: public class TestInOutArray{ public void InOutIntArray(IntArrayHolder intArr) { int len = intArr.value.length; int[] array = new int[len]; for(int i=0; i < len; i++) { array[i] = intArr.value[i] +1; } intArr.value = array; } public int[] echoIntArray(int[] intArr) { return intArr; } } 3) run Java2WSDL with option -yWRAPPED. You will see the fallowing elements in the WSDL file. -- 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: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org