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

前端 未结 5 676
情歌与酒
情歌与酒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 06:01

    Adding @XmlElement(required=true,nillable=false) after @WebParam solved my similar problem. Using CXF 2.7.9. Did not try putting @XmlElement first, could it be that simple?

提交回复
热议问题