Apache CXF:在WSDL中添加自定义文档?

Pie*_*rre 6 java documentation web-services cxf java-ee

我正在学习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();
  }
Run Code Online (Sandbox Code Playgroud)

提前致谢,

皮埃尔

Jig*_*shi 9

Apache CXF 2.3.0支持此功能.

@WSDLDocumentation 注释,用于向生成的wsdl添加文档节点