3 Replies Latest reply on Jan 9, 2007 3:11 PM by David Win

    Using Java 5 Generics for Webservices

    Olivier PEPIN Newbie

      Hello,

      Is it possible with jboss WS and jsr-181 to use Generics in a Webservice interface.

      ie:

      @WebMethod
      public ContentSet getContent()
      {
      ...
      }


      with:
      public class ContentSet
      {
      T[] items;

      ....
      ....
      }

      Currently (jboss 4.0.5) the generated wsdl does not generate the correct types and the webservice dos not work.

      Is it supposed to work ?

      Thank for your help,
      Olivier