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

前端 未结 5 688
情歌与酒
情歌与酒 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 05:54

    You try change the order in @WebParam and @XmlElement? actually i have a WS whit this:

    public Persona consultarPersona(@WebParam(name = "cedula") @XmlElement(required=true, nillable=false, name="cedula", namespace="cedulaParam")  String cedula) 
    

    And the description generate is:

     
    
    
    

    and the schema definition:

        
    
    
    

    that's it!!

提交回复
热议问题