0 Replies Latest reply on Jul 8, 2008 4:20 AM by okr2004

    Base class as parameter of WebMethode and generated WSDL

    okr2004

      Hi everyone,
      i'm building a webservice with an ejb3 stateless session bean depolyed on JBoss 4.2.2, something like this:

      @Stateless
      @WebService
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      public class Calculator implements CalculatorRemote
      {
       @WebMethod
       public int test3(int value, DataItem dataItem)
       {
       // TODO Auto-generated method stub
       return value+dataItem.getValue();
       }
      }
      


      DataItem is the base class for the class SpecialDataItem.

      My problem is, that the generated WSDL doesn't contain the type definition for the derived class SpecialDataItem, only the definition for DataItem.

      How can i get this? Any ideas?

      Thanks for your help...