Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 17579 invoked from network); 15 Mar 2007 21:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 21:38:19 -0000 Received: (qmail 8972 invoked by uid 500); 15 Mar 2007 21:38:19 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 8959 invoked by uid 500); 15 Mar 2007 21:38:19 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 8948 invoked by uid 99); 15 Mar 2007 21:38:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 14:38:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [207.13.174.110] (HELO exnovbhs001.gpmort.com) (207.13.174.110) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 14:38:08 -0700 Received: from exnovmbs001.gpmort.com ([10.12.102.130]) by exnovbhs001.gpmort.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Mar 2007 14:38:38 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [axis2] String arrays as a property Date: Thu, 15 Mar 2007 14:38:36 -0700 Message-ID: <088728D635A9414BB334DB4AC9444BEE01F45049@exnovmbs001.gpmort.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [axis2] String arrays as a property Thread-Index: AcdnSknxmvXX3kY7TIiODtrRMnY5hg== From: "Grimshaw, Jeffrey" To: X-OriginalArrivalTime: 15 Mar 2007 21:38:38.0387 (UTC) FILETIME=[4AD21030:01C7674A] X-Virus-Checked: Checked by ClamAV on apache.org Hi all. I generated a new web service and one of the types in the wsdl has the following definition: A simple string list, right? Well, what wsdl2java generated from this definition is and object with this property: protected org.apache.axiom.om.OMElement[] localListOfStuff; So the adder for this list looks like this: public void addHeader(org.apache.axiom.om.OMElement param) { if (localListOfStuff =3D=3D null) { localListOfStuff =3D new org.apache.axiom.om.OMElement[] {}; } // update the setting tracker localListOfStuffTracker =3D true; java.util.List list =3D org.apache.axis2.databinding.utils.ConverterUtil .toList(localListOfStuff); list.add(param); this.localListOfStuff =3D (org.apache.axiom.om.OMElement[]) list .toArray(new org.apache.axiom.om.OMElement[list.size()]); } Unfortunately, another part of the service that uses this class doesn't know about the type org.apache.axiom.om.OMElement, and I don't want it to have to. Is there an easy way to create an adder that has a signature like this (which is what I was aiming for in the first place): public void addHeader(String param) Perhaps make a wrapper that creates a new org.apache.axiom.om.OMElement and delegates? I've been digging into the javadoc for org.apache.axiom.*, but I don't know enough about the libraries to know what to look for. Any help will be very much appreciated. Thanks, Jeff Grimshaw Sr. Programmer/Analyst Green Point Mortgage --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org