[英]Apache CXF: adding custom documentation in the WSDL?
I'm currently learning Apache CXF . 我正在学习Apache CXF 。
When CXF is generating a WSDL file from a Pojo, is there a way (a java annotation ?) to add a custom documentation to the WSDL file ? 当CXF从Pojo生成WSDL文件时,有没有办法(java注释?)将自定义文档添加到WSDL文件中? to describe a service or a parameter ?
描述服务或参数?
I've already used @WebParam to set some descriptive names but I'd like to add a longer documentation. 我已经使用@WebParam来设置一些描述性名称,但我想添加更长的文档。 Something like...
就像是...
@WebService
@Documentation("This service say hello. See http://say.hello")
public interface MyService
{
@WebResult(name="helloMessage")
@Documentation("Returns the hello message")
public String sayHello();
}
Thanks in advance, 提前致谢,
Pierre 皮埃尔
Apache CXF 2.3.0 supports this. Apache CXF 2.3.0支持此功能。
@WSDLDocumentation
annotation to add documentation nodes to generated wsdl @WSDLDocumentation
注释,用于向生成的wsdl添加文档节点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.