0 Replies Latest reply on Feb 12, 2009 8:38 AM by andre.rieck

    JAXB Annotations are beeing ignored

      Hi,

      i've build a Web-Service enabled StatelessSession Bean with JAXB annotated classes as Result-Types.

      @Stateless
      @Remote(MyBusinessInterface.class)
      @WebService(name="MyBusinessService")
      public class MyBusinessServiceBean implements MyBusinessInterface

      // from MyBusinessInterface
      @WebMethod
      public MyResultType getResult() {
      ....
      }

      ...
      }

      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name="ResultType")
      public class MyResultType implements Serializable {

      @XmlElement(name="anElement")
      protected List myElements;

      ... getters and setters ...
      }


      Unfortunately the JAXB-Annotations are ignored when
      generating the wsdl !
      I used wsprovide and also tried just to deploying the the EAR with the
      @WebService-annotated bean. In both cases the JAXB-Annotations
      do not seem to have any effect.
      I would very much appreciate any hint on what might be wrong here.

      Thanks a lot :-) !!

      André