Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 41085 invoked from network); 6 Apr 2006 22:34:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 22:34:03 -0000 Received: (qmail 1386 invoked by uid 500); 6 Apr 2006 22:33:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 1322 invoked by uid 500); 6 Apr 2006 22:33:58 -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 1311 invoked by uid 99); 6 Apr 2006 22:33:58 -0000 Received-SPF: neutral (hermes.apache.org: local policy) Received: from [69.236.152.222] (HELO adsl-69-236-152-222.dsl.pltn13.pacbell.net) (69.236.152.222) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 15:33:58 -0700 Received: from coldcut.simonathome.com (coldcut.simonathome.com [192.168.1.70]) by zaks.demon.co.uk with ESMTP (Mailtraq/2.5.1.1621) id ZAKS36C7AAE2 for axis-dev@ws.apache.org; Thu, 06 Apr 2006 15:35:57 -0700 From: Simon Fell To: axis-dev@ws.apache.org Subject: [axis2] XMLBeans Date: Thu, 06 Apr 2006 15:35:59 -0700 Organization: pocketsoap.com Message-ID: X-Mailer: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Hops: 1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N using the apr 6 snapshot, i generated a client stub using xmlbeans, by running wsdl2java -s -d xmlbeans -uri enterprise.wsdl I have some client code that uses the stub SoapStub s =3D new SoapStub("http://www.salesforce.com/services/Soap/c/7.0"); =09 Login l =3D Login.Factory.newInstance(); l.setUsername("user@org"); l.setPassword("pwd"); LoginDocument ld =3D LoginDocument.Factory.newInstance(); ld.setLogin(l); LoginResult lr =3D s.login(ld).getLoginResponse().getResult(); This works fine, however i notice that if i call ld.setLogin(l) earlier, it doesn't work, perhaps this is just that i don't understand XMLBeans, does setLogin take a clone ? for example if i re-arange the code to=20 LoginDocument ld =3D LoginDocument.Factory.newInstance(); Login l =3D Login.Factory.newInstance(); ld.setLogin(l); l.setUsername("user@org"); l.setPassword("pwd"); LoginResult lr =3D s.login(ld).getLoginResponse().getResult(); it fails, because the generated message doesn't include anything from the Login class. Is this just the way xmlbeans works (which would be weird), or is it a bug ? Thanks Simon