@XmlElement(required=true) for @WebParam does not work

前端 未结 5 694
情歌与酒
情歌与酒 2020-12-31 05:27

I\'m building web service using JAX-WS. I have a strange problem that the annotation @XmlElement(required=true) for @WebParam works in some @

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 06:00

    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
    

提交回复
热议问题