I have a simple web service as below
/**
* Test web service
*/
@Stateless
@WebService
public class HelloWorldWebService {
/**
* Greets the user by appending 'Hello' before the name
*/
@WebMethod
public String doWork(String name){
return "Hello " + name + " !";
}
}
Is there a way (using annotations or otherwise) of adding comments to the Web Service or Web Method so that when a third party calls it (or inspects the WSDL), there are comments/documentation that describes the web service, its methods and parameters; much like comments that are later included in java docs.
I think this is possible (last comment) for .NET web service, but not sure in Java web services.
您可以将<wsdl:documentation>
元素添加到wsdl: WSDL文档结构
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.