Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 79105 invoked from network); 10 Jun 2007 04:17:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 04:17:50 -0000 Received: (qmail 60116 invoked by uid 500); 10 Jun 2007 04:17:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 59429 invoked by uid 500); 10 Jun 2007 04:17:50 -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 59406 invoked by uid 99); 10 Jun 2007 04:17:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2007 21:17:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jun 2007 21:17:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D51F714159 for ; Sat, 9 Jun 2007 21:17:26 -0700 (PDT) Message-ID: <11048672.1181449045937.JavaMail.jira@brutus> Date: Sat, 9 Jun 2007 21:17:25 -0700 (PDT) From: "Ken Ricci (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2436) Missing ancestor (POJO) properties in SOAP response In-Reply-To: <9195116.1175195365130.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2436?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503150 ]=20 Ken Ricci commented on AXIS2-2436: ---------------------------------- Thats's gr8. Thanks! _________________________________________________________________ Live Earth is coming.=C2=A0 Learn more about the hottest summer event - onl= y on MSN. http://liveearth.msn.com?source=3Dmsntaglineliveearthwlm > Missing ancestor (POJO) properties in SOAP response > ---------------------------------------------------- > > Key: AXIS2-2436 > URL: https://issues.apache.org/jira/browse/AXIS2-2436 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.1.1 > Environment: WinXP. JDK 1.5.10, Tomcat 5.5.16 > Reporter: Ken Ricci > Assignee: Deepal Jayasinghe > > wow..Good Find Ken! > I was able to reproduce the problem by=20 > introducing a new Base class > public class StockQuoteServiceSkeleton extends Base=20 > public class Base extends Object implements java.io.Serializable > { > //the usual Bean no arg constructor > public Base() { ; } > =20 > protected String BaseString=3D"BaseString"; > public String getBaseString() { return BaseString; } > public void setBaseString(String new_base) > { > BaseString =3D new_base; > } > } > and then deriving my existing Class from Base called Base > package samples.quickstart.service.adb; > //import samples.quickstart.service.adb.xsd.GetPriceResponse; > //import samples.quickstart.service.adb.xsd.Update; > //import samples.quickstart.service.adb.xsd.GetPrice; > import java.util.HashMap; > import samples.quickstart.service.adb.Base; > =20 > public class StockQuoteServiceSkeleton extends Base { //implements StockQ= uoteServiceSkeletonInterface { > private HashMap map =3D new HashMap(); > =20 > // public void update(Update param0) { > public void update(String param0) { > //map.put(param0.getSymbol(), new Double(param0.getPrice())); > map.put("IBM", 42.0); > } > =20 > // public GetPriceResponse getPrice(GetPrice param1) { > public String getPrice(String param1) { > Double price =3D 42.0; //(Double) map.get(param1.getSymbol()); > double ret =3D 42; > if(price !=3D null){ > // ret =3D price.doubleValue(); > } > // GetPriceResponse res =3D > // new GetPriceResponse(); > // res.set_return(ret); > // return res; > return "IBM"; > } > } > I think Ken is entitiled to the next version for free! > Please post the bug here > POST JIRA here=20 > http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=3Dtrue&mod= e=3Dhide&pid=3D10611&sorter/order=3DDESC&sorter/field=3Dpriority&resolution= =3D-1&component=3D12310180 > Thx, > Martin-- > -------------------------------------------------------------------------= --=20 > This e-mail message (including attachments, if any) is intended for the u= se of the individual or entity to which it is addressed and may contain inf= ormation that is privileged, proprietary , confidential and exempt from dis= closure. If you are not the intended recipient, you are notified that any d= issemination, distribution or copying of this communication is strictly pro= hibited. > -------------------------------------------------------------------------= --=20 > Le pr=C3=A9sent message =C3=A9lectronique (y compris les pi=C3=A8ces qui = y sont annex=C3=A9es, le cas =C3=A9ch=C3=A9ant) s'adresse au destinataire i= ndiqu=C3=A9 et peut contenir des renseignements de caract=C3=A8re priv=C3= =A9 ou confidentiel. Si vous n'=C3=AAtes pas le destinataire de ce document= , nous vous signalons qu'il est strictement interdit de le diffuser, de le = distribuer ou de le reproduire. > ----- Original Message -----=20 > From: ken.ricci@ubs.com=20 > To: axis-user@ws.apache.org=20 > Cc: Ken.Ricci@ubs.com=20 > Sent: Thursday, March 29, 2007 10:50 AM > Subject: [Axis2] Missing ancestor properties in SOAP response > Taking the bottom up approach, exposing WS via POJOs and letting Axis2 ge= nerate WSDL on the fly. The base properties of the POJO are not returned = in SOAP response, the WSDL is exposed however. > Any help is appreciated. =20 > As you can see below, the elements in base class, are not in the response= :=20 > =20 > =20 > =20 > =20 > =20 > =20 > = =20 > Attached WSDL (snippet of complex type generated):=20 > =20 > > = =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > = =20 > =20 > =20 > =20 > =20 > =20 > = =20 > =20 > =20 > =20 > =20 > ....=20 > =20 > ...=20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > ...=20 > =20 > =20 > SOAP response:=20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > 0001-= 01-01T00:00:00.202Z=20 > DJ CDX NA - I= G=20 > =20 > =20 > =20 > CDXNAIG=20 > =20 > =20 > =20 > =20 > =20 > 0001-= 01-01T00:00:00.202Z=20 > DJ CDX NA - X= O=20 > =20 > =20 > =20 > CDXNAXO=20 > =20 > =20 > =20 > =20 > =20 > Java Code (snippet):=20 > public class BaseReturn implements Serializable {=20 > /* Price/Returns data */=20 > protected Calendar basePriceDate =3D null;=20 > protected float currentPrice =3D 0;=20 > protected float intrinsicPrice =3D 0;=20 > protected float changeOneDay =3D 0;=20 > protected float changeOneWeek =3D 0;=20 > protected float changeOneMonth =3D 0;=20 > protected float changeThreeMonths =3D 0;=20 > ...=20 > public class CDSIndiceReturns extends BaseReturn implements Serializable = {=20 > =20 > private String symbol =3D "";=20 > private String name =3D ""; =20 > private String term =3D "";=20 > private String indiceSeries =3D ""; =20 > private String indiceVersion =3D "";=20 > private Calendar maturityDate =3D null;=20 > private String onTheRun =3D "";=20 > private String redcode =3D "";=20 > private String redcodeIdx =3D "";=20 > ______________________________________________=20 > From: Ricci, Ken =20 > Sent: Wednesday, March 28, 2007 12:55 PM=20 > To: axis-user@ws.apache.org=20 > Cc: Ricci, Ken=20 > Subject: [Axis2] Bean generated WSDL missing ancestor properties i= n SOAP response=20 > I have a base bean, ClassA with a few properties. The ClassA is extende= d by ClassB for some additional properties. The generated WSDL for ClassB= is correct. However, the SOAP response omits all the elements/values from= the ancestor (ClassA) > Is this allowed in Axis2? I tried to create additional getters methods = in ClassB for the ClassA attributes. That will give me the correct SOAP r= esponse, but double the generate WSDL elements for the ClassA attributes. = That confuses the WS client. > Help is appreciated.=20 > Thx, Ken=20 --=20 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org