I'm trying to create a webservice that returns a bean containing a collection. Something like this:
@WebService
class Service
{
A getA();
}
class A
{
public Collection getX();
};
class B
{
..
};
I get the following in JBoss log (running 4.0.5):
JAX-RPC does not allow collection types skipping: X
I searched the JAXB specs as JAX-WS delegates xml encoding to JAXB, but I either could not understand or find anything about collections. The JAXB API docs suggests that it should be handled.
Any ideas?
Collection above is supposed to be Collection<B>.