[英]Apache CXF: adding custom documentation in the WSDL?
我正在学习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();
}
提前致谢,
皮埃尔
Apache CXF 2.3.0支持此功能。
@WSDLDocumentation
注释,用于向生成的wsdl添加文档节点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.