axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Schmidt-Møller <>
Subject Creatings stubs. Generics problem.
Date Fri, 22 Jul 2005 19:08:28 GMT
Ok, I am a total newbie in the wonderful world of webservices, but 
someone told me that using Axis was as easy as pie. Generally, that 
seems to be true, but I ran into an annoying problem.

I want to publish a method that returns a List of javabeans. I use the 
standard BeanSerializer and BeanDeserializer. On the clientside, 
WSDL2Java will be used to generate stubs.

The problem seems to be that Java generics does not appear to be fully 
supported. In other words, this works:

public class SomeService {
    public SomeBean getBean( ... ) { ... }

    public List<SomeBean> getBeanList() { ... }

However, this does not work:

public class SomeService {

    public List<SomeBean> getBeanList() { ... }

If there is no method that explicitly returns SomeBean the 
"stub" is not generated.

Now, the obvious choice would be to have getBeanList return someBean[] 
instead, but I happen to like generics :)

So, the questions are these: Is there neat way out of this problem? If 
not, will it be supported in a future version of Axis? If so, when?

Best Regards,

View raw message