Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 45545 invoked from network); 17 Jun 2009 20:19:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jun 2009 20:19:43 -0000 Received: (qmail 74036 invoked by uid 500); 17 Jun 2009 20:19:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 73956 invoked by uid 500); 17 Jun 2009 20:19:53 -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 73947 invoked by uid 99); 17 Jun 2009 20:19:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2009 20:19:53 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.18.1.183] (HELO exprod6og102.obsmtp.com) (64.18.1.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2009 20:19:41 +0000 Received: from source ([192.150.8.22]) by exprod6ob102.postini.com ([64.18.5.12]) with SMTP ID DSNKSjlPxguAxbAYRVxx3DqJjc9adygsVV7g@postini.com; Wed, 17 Jun 2009 13:19:20 PDT Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id n5HKJGWG029175 for ; Wed, 17 Jun 2009 13:19:16 -0700 (PDT) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id n5HKJEY2018899 for ; Wed, 17 Jun 2009 13:19:15 -0700 (PDT) Received: from nacas03.corp.adobe.com (10.8.189.121) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.1.340.0; Wed, 17 Jun 2009 13:19:14 -0700 Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nacas03.corp.adobe.com ([10.8.189.121]) with mapi; Wed, 17 Jun 2009 13:19:14 -0700 From: Tom Jordahl To: "axis-dev@ws.apache.org" Date: Wed, 17 Jun 2009 13:19:10 -0700 Subject: =?windows-1255?Q?RE:_Multi-Argument_Constructors_WSDL2Java_Axis1_and_Axis?= =?windows-1255?Q?2=FE?= Thread-Topic: =?windows-1255?Q?Multi-Argument_Constructors_WSDL2Java_Axis1_and_Axis2=FE?= Thread-Index: Acnpg7rSqIxe1bFrTgCEQQ0F3GJeswGBJATQ Message-ID: <81CB148A36E8B241A8369338AA528AC380DF8D1170@NAMBX02.corp.adobe.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I believe that I added a change to the Axis 1.x trunk to stop WSDL2Java fro= m emitting a multi-argument constructor when the number of arguments reache= s the Java limit of 255. Not sure what version of Axis 1.x you are using, but you should be able to = check the JavaBeanWriter class for the change that fixes this. I checked t= his in Feb-2007: See http://svn.apache.org/viewvc?view=3Drev&rev=3D512459 URL: http://svn.apache.org/viewvc?view=3Drev&rev=3D512459 Log: Do not write constructors for JavaBeans that have more than 254 arguments as Java will not compile these classes. Have to love Amazon.com web services. Tom Jordahl -----Original Message----- From: w smith [mailto:wsmithmisc@hotmail.com]=20 Sent: Wednesday, June 10, 2009 12:27 AM To: axis-dev@ws.apache.org Subject: Multi-Argument Constructors WSDL2Java Axis1 and Axis2=FE WSDL2Java in Axis1 generates multi-argument constructors by default, WSDL2J= ava in Axis2 does not. =20 Can an option be added to Axis1 and Axis2 to control this behavior? =20 In general the multi-argument constructor are OK but with something like Salesforce.com enterprise's WSDL, an Object can have 500 custom fields whic= h means a 500 argument constructor. =20 Java cannot compile a constructor/method with over 255 arguments which mean= s the developer has to manually comment out these constructors. =20 Is there already an option to not generate multi-argument constructors with= Axis1? =20 Thanks _________________________________________________________________ Windows Live=99 SkyDrive=99: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=3DTXT_TAGLM_WL_SD_25GB_062009