Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 12129 invoked from network); 5 Apr 2004 23:21:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Apr 2004 23:21:22 -0000 Received: (qmail 81281 invoked by uid 500); 5 Apr 2004 23:20:44 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 81251 invoked by uid 500); 5 Apr 2004 23:20:44 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 81202 invoked from network); 5 Apr 2004 23:20:44 -0000 Received: from unknown (HELO hotmail.com) (65.54.185.9) by daedalus.apache.org with SMTP; 5 Apr 2004 23:20:44 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Apr 2004 16:20:51 -0700 Received: from 192.35.84.5 by by15fd.bay15.hotmail.msn.com with HTTP; Mon, 05 Apr 2004 23:20:51 GMT X-Originating-IP: [192.35.84.5] X-Originating-Email: [markleone923@hotmail.com] X-Sender: markleone923@hotmail.com From: "Mark Leone" To: axis-user@ws.apache.org Bcc: Subject: RE: RES: Mapping a bean within a bean Date: Mon, 05 Apr 2004 19:20:51 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Apr 2004 23:20:51.0782 (UTC) FILETIME=[A2F45E60:01C41B64] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I was hoping nobody would ask me that. :) It was a silly mistake. I thought I had bounced Tomcat after swapping out the class files, but I had not. So the changes I made to my Java code were not actually deployed to the web container. Unfortunately, I'm not sure what I changed to make it work. I just spent some time trying to make it behave like it did beofre, and I couldn't. I think I might have had a typo on my setter or getter methods, resulting in a bean that wasn't quite a bean. But I'm not sure. Here is my java code and WSDD, along with the WSDL that AXIS created. Maybe you can find your problem by looking at this. Otherwise, why don't you post your java, WSDD, and the resulting WSDL? ***** java beans ***** package TaxServiceW2B; public class TestBean2{ public double total = 0; public double subtotal = 0; public double rate = 0; public String text = ""; public InnerBean anotherBean; public TestBean2(InnerBean anotherBean){ this.anotherBean = anotherBean; } public void setTotal(double total){ this.total = total; } public void setSubtotal(double subtotal){ this.subtotal = subtotal; } public void setRate(double rate){ this.rate = rate; } public void setText(String text){ this.text = text; } public void setAnotherBean(InnerBean anotherBean){ this.anotherBean = anotherBean; } public double getTotal(){ return total; } public double getSubtotal(){ return subtotal; } public double getRate(){ return rate; } public String getText(){ return text; } public InnerBean getAnotherBean(){ return anotherBean; } } package TaxServiceW2B; public class InnerBean{ int number = 0; String color = "none"; public InnerBean(){} public InnerBean(int number, String color){ this.number = number; this.color = color; } public void setNumber(int number){ this.number = number; } public void setColor(String color){ this.color = color; } public int getNumber(){ return number; } public String getColor(){ return color; } } ***** Service Implementation ***** package TaxServiceW2B; public class TaxServiceW2B { public TestBean2 calcTaxRate(double subtotal, double total) { double rate = (total - subtotal) / subtotal; InnerBean anotherBean = new InnerBean(1,"red"); TestBean2 bean = new TestBean2(anotherBean); bean.setTotal(total); bean.setSubtotal(subtotal); bean.setRate(rate); bean.setText("I am a superbean"); return bean; } public double calcSubtotal(double total, double taxpercent) { double subtotal = total / (1 + taxpercent); return subtotal; } public double calcTotal(double subtotal, double taxpercent) { double total = subtotal * (1 + taxpercent); return total; } } ***** WSDD ***** ***** AXIS Generated WSDL ***** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >From: "Fabricio B. Teixeira" >Reply-To: axis-user@ws.apache.org >To: >Subject: RES: Mapping a bean within a bean >Date: Mon, 5 Apr 2004 08:56:09 -0300 > >I�m with a similar problem and I�m get crazy. >Could you tell me how you configured your web container? > >-----Mensagem original----- >De: Mark Leone [mailto:markleone923@hotmail.com] >Enviada em: segunda-feira, 5 de abril de 2004 01:17 >Para: axis-user@ws.apache.org >Assunto: RE: Mapping a bean within a bean > > >Problem solved. Found a misconfiguration in my web container, causing an >older version of the class files to be running. The bean mapping works as >expected with a wrapped bean. > > >_________________________________________________________________ >Watch LIVE baseball games on your computer with MLB.TV, included with MSN >Premium! >http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/dire >ct/01/ > > _________________________________________________________________ Free up your inbox with MSN Hotmail Extra Storage! Multiple plans available. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/