I\'m building web service using JAX-WS. I have a strange problem that the annotation @XmlElement(required=true) for @WebParam works in some @
@XmlElement(required=true)
@WebParam
@
Perhaps I found the solution. If anyone encounters the same problem, just place these annotations in you web service contract(interface) in exact this order, as all guys answered before.
@WebParam(name = "yourParam") @XmlElement(required = true) YourParam param