[jboss-user] [JBossWS] - JAXB Annotations are beeing ignored

andre.rieck@hansemerkur.de do-not-reply at jboss.com
Thu Feb 12 08:38:27 EST 2009


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é


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209496#4209496

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209496




More information about the jboss-user mailing list