【问题标题】:Apache CXF: adding custom documentation in the WSDL?Apache CXF:在 WSDL 中添加自定义文档?
【发布时间】:2011-01-05 09:35:06
【问题描述】:

我目前正在学习 Apache CXF

当 CXF 从 Pojo 生成 WSDL 文件时,有没有办法(java 注释?)将 自定义文档 添加到 WSDL 文件?描述服务或参数?

我已经使用@WebParam 设置了一些描述性名称,但我想添加更长的文档。有点像...

@WebService
@Documentation("This service say hello. See http://say.hello")
public interface MyService
  {
  @WebResult(name="helloMessage")
  @Documentation("Returns the hello message")
  public String sayHello();
  }

提前致谢,

皮埃尔

【问题讨论】:

    标签: java web-services documentation jakarta-ee cxf


    【解决方案1】:

    Apache CXF 2.3.0 支持这个。

    @WSDLDocumentation 将文档节点添加到生成的 wsdl 的注释

    【讨论】:

      猜你喜欢
      • 2018-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多