【问题标题】:Type or param of web-service method marked in WSDL as non-nullable在 WSDL 中标记为不可为空的 Web 服务方法的类型或参数
【发布时间】:2023-04-02 06:30:01
【问题描述】:

如何使将在 WSDL 中标记为不可空的类型?

如果以上都不可能,如何描述Web服务方法的参数,它将在WSDL中标记为不可为空?

【问题讨论】:

    标签: java web-services wsdl jax-ws


    【解决方案1】:

    阅读以下文章了解详情
    Making a web service request parameter a required field
    How can I make a WebMethod parameter required
    XmlElement annotation dissallowed with WebParam
    简单来说,需要使用@XmlElement(required=true),更多详情请参考以上帖子。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-15
      • 1970-01-01
      • 2018-10-02
      • 2010-09-22
      • 2011-07-15
      相关资源
      最近更新 更多