Bonjour,

Je développe un web service avec des annotation @webparam et je souhaite ajouter required = true ou false
<code>
@WebService(targetNamespace = "http://api.service.minitest.xxx.com/", name = "MiniTestService")
public interface MiniTestService {
@WebMethod
public String testMethod(

@WebParam(name = "token2") @XmlElement(required=true) String token,

@WebParam(name = "id2") long id);


}
</code>

J'ai une erreur de compilation : the annotation @XmlElement is disallowed for this location.

Est ce qu'il y'as une façon pour rendre mon param obligation ou facultatif ?

Merci d'avance.