cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: pojo object return type not included in wsdl as complextype
Date Mon, 05 Nov 2007 20:59:10 GMT


Mark,

You might be hitting a class name conflict issue:
@ResponseWrapper(className="Balance")
public Balance doCredit(Double amount)

You have a "Balance" object for the return type, but you are also using a 
Balance object for the response wrapper.   Is that intended?   

Also, the className attribute should point to a fully qualified (with 
package) class name that we can do a "Class.forName(...)" with.

Dan



On Monday 05 November 2007, Mark Clarke wrote:
> Hi there,
>
> I can;t get cfx to place the definition of a pojo into the wsdl as a
> complextyope. On the interface I have tried the following:
>
> ==============================================
>
> import .....
>
> @WebService
> public interface ISimpleBankAccount{
>
> @ResponseWrapper(className="Balance") public Balance doDebit(Double
> amount);
>
> @ResponseWrapper(className="Balance")
> public Balance doCredit(Double amount);
>
> }
>
>
>
>
>
>
> public class Balance(){
> java.util.Date date;
> Double balance;
> Double previousBlanace;
>
> .... getter and setters
>
>
> }
>
> ================================
>
> What am I doing wrong?
> ===========================================
> Cyber Connect - More than just broadband
> http://www.CyberConnect.co.za - Vodacom 3G R99/month
>
> Cyber Designs - Put your business on the net
> http://www.CyberDesigns.co.za
>
> Jumping Bean - Your Java and Linux Experts
> http://www.JumpingBean.co.za
>
> Tel: 011-781 80 14
> Fax: 011-781 80 15
> ===========================================
> Disclaimer
>
> Any views or opinions presented in this email are solely those of the
> author and do not necessarily represent those of the company.
> Employees of Cyber Designs are expressly required not to make
> defamatory statements and not to infringe or authorize any
> infringement of copyright or any other legal right by email
> communications. Any such communication is contrary to company policy
> and outside the scope of the employment of the individual concerned.
> The company will not accept any liability in respect of such
> communication, and the employee responsible will be personally liable
> for any damages or other liability arising.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message