1 Reply Latest reply on May 4, 2007 7:20 AM by marcusn

    JAX-RPC does not allow collection types?

    marcusn

      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?