Hi Daniel,

The example was a quick and dirty to give some idea of what I am trying. From what I have read the className attribute should point to the fQN of the class, in my example I am assuming default packahe but the same would apply for any other package namespace. As the return type and the className refer to the same class I assume they would be the same?

My basic problem is that any return type that is not a "standard" java.lang object just throws errors like "Marshalling Errror: <class> is not know to this context"

Its quiet frustrating. I didnt have this problem with xfire :(

Daniel Kulp wrote:

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.




===========================================
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.

Reply via email to